Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / December 2007

Tip: Looking for answers? Try searching our database.

Membership.CreateUser without Question/Answer

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jonathan Wood - 18 Dec 2007 00:45 GMT
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.

Signature

Jonathan Wood
SoftCircuits Programming
http://www.softcircuits.com

Scott Roberts - 18 Dec 2007 15:31 GMT
Change your Membership settings in web.config to not require a question &
answer.

On the provider, the attribute is:

requiresQuestionAndAnswer="false"

> 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
[quoted text clipped - 8 lines]
>
> Thanks.
Jonathan Wood - 19 Dec 2007 21:44 GMT
Make sense. Thanks Scott!

Signature

Jonathan Wood
SoftCircuits Programming
http://www.softcircuits.com

> Change your Membership settings in web.config to not require a question &
> answer.
[quoted text clipped - 15 lines]
>>
>> Thanks.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.