Create User Steps

S

shapper

Hello,

I am creating an user that is not approved:

MembershipUser user = Membership.CreateUser(username, password, email,
null, null, false, null, out status);

I need to define its profile ... should I authenticate the user to add
the profile?

But if I do it the user will be loged on which I don't want because it
is not approved.
What are the usual steps to create an user, define its profile but yet
not being approved until later?

Thanks,
Miguel
 
B

brians[MCSD]

Hello Miguel - If you set the IsApproved property on the resulting
MembershipUser, that would lock them out until you later flip it during an
approval process.
 
S

shapper

Hello Miguel - If you set the IsApproved property on the resulting
MembershipUser, that would lock them out until you later flip it during an
approval process.

Yes, but I am migrating anonymous profile values to the new profile
after the user is registered.

After this I need, I think, to delete the anonymous profile using:

AnonymousIdentificationModule.ClearAnonymousIdentifier();

But I get the following error:

System.NotSupportedException: ClearAnonymousIdentifier is not
supported when the feature is disabled or the user is anonymous.

But if the user is not approved how can I authenticate it so I can
delete its anonymous profile?

This is confusing ...

Any idea?

Thanks,

Miguel
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top