Membership.CreateUser without Question/Answer

J

Jonathan Wood

In my application, new accounts must be created by an administrator--users
will not create their own. Ideally, the user could then log on and specify
their own password question and answer, and the administrator doesn't even
know what that question and answer is.

I thought I could do this since Membership.CreateUser() includes an overload
that does not include question and answer arguments. However, when I use it,
I get the error "Invalid question-answer."

Can anyone suggest a better approach?

Thanks.
 
S

Scott Roberts

Change your Membership settings in web.config to not require a question &
answer.

On the provider, the attribute is:

requiresQuestionAndAnswer="false"
 

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,995
Messages
2,570,230
Members
46,816
Latest member
SapanaCarpetStudio

Latest Threads

Top