Create User Steps

  • Thread starter Thread starter shapper
  • Start date Start date
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
 
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.
 
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
 
Back
Top