Author: shapper | Posted on: 11/22/2008 10:56:47 AM | Views : 265


Hello,

I am creating a user following the steps:

Get User Anonymous Profile > Create User > Create User Profile >  Copy Anonymous Profile to User Profile > Delete User Anonymous Profile > Send Confirmation Email

The user needs to confirm it's email to approve the account by visiting the URL that is sent by email.

Until the account has been confirmed the user cannot login.

This is my code:


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

if (user != null) {
ProfileHelper profile = ProfileHelper.GetProfile(username);
...

Go to the complete details ...