Author: desertfoxaz | Posted on: 5/15/2009 1:49:33 PM | Views : 263

It seems the CreateUserWizard is meant for self-service account registration, but in my project all account creation will be handled by the Administrator.  Obviously, the Administrator can't choose a password and password/answer question (as then they'd know it).  Assuming that RequireQuestionAndAnswer for the MembershipProvider is true, what's the best way to provide values for these to the provider so it doesn't complain when attempting to create the account?  Ideally we'd want to assign a random password to the user and then require them to change it on the first login.  I don't necessarily have to use the CreateUserWizard, but I found out that I have to specify a password when the account is created, and a password/question if the MembershipProvider's configuration settings specify that they are required.  I'd assume at this point that if the user has a valid email address then we can send it to them, which means the passw ...

Go to the complete details ...