By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,825 Members | 1,055 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,825 IT Pros & Developers. It's quick & easy.

<asp:PasswordRecovery -- remove security question

P: n/a
Is there a way to remove the security question step from the Password
Recovery control?

i.e. I just want the user to enter the username and have the password
emailed to him immediately. No need for the security question.


Jan 8 '06 #1
Share this Question
Share on Google+
4 Replies


P: n/a
Just use the requiresQuestionAndAnswer property and set it to false

Here's a good website that explain everything about this control:
http://www.asp.net/QuickStart/aspnet...drecovery.aspx

HTH

Alain

"David R." <da***********@nospam.com> a écrit dans le message de news:
uS**************@TK2MSFTNGP15.phx.gbl...
Is there a way to remove the security question step from the Password
Recovery control?

i.e. I just want the user to enter the username and have the password
emailed to him immediately. No need for the security question.

Jan 8 '06 #2

P: n/a
Actually, this is a property in the Membership class.

What you should do is not set the security question in the first place. By
requiring it when a login is first created will force you to always use it.
--
Christopher A. Reed
"The oxen are slow, but the earth is patient."

"Alain Hogue" <al*********@tech-mentor.com> wrote in message
news:pR*****************@news20.bellglobal.com...
Just use the requiresQuestionAndAnswer property and set it to false

Here's a good website that explain everything about this control:
http://www.asp.net/QuickStart/aspnet...drecovery.aspx

HTH

Alain

"David R." <da***********@nospam.com> a écrit dans le message de news:
uS**************@TK2MSFTNGP15.phx.gbl...
Is there a way to remove the security question step from the Password
Recovery control?

i.e. I just want the user to enter the username and have the password
emailed to him immediately. No need for the security question.

Jan 9 '06 #3

P: n/a
Just use the requiresQuestionAndAnswer property and set it to false

Here's a good website that explain everything about this control:
http://www.asp.net/QuickStart/aspnet...drecovery.aspx

HTH

Alain
David R. wrote:
Is there a way to remove the security question step from the Password
Recovery control?

i.e. I just want the user to enter the username and have the password
emailed to him immediately. No need for the security question.


Jan 9 '06 #4

P: n/a
Christopher is right, here is what you need in your web.config:

<system.web>
<connectionStrings>
<add name="SqlServices"
connectionString="AttachDbFilename=|DataDirectory| \aspnetdb.mdf;Integrated
Security=SSPI;Initial
Catalog=aspnetdb;" />
</connectionStrings>

<membership>
<providers>
<add connectionStringName="SqlServices"
enablePasswordRetrieval="false"
enablePasswordReset="true"
requiresQuestionAndAnswer="false"
passwordFormat="Hashed"
applicationName="Cardfile"
requiresUniqueEmail="false"
maxInvalidPasswordAttempts="5"
passwordAttemptWindow="10"
name="SqlProvider"
type="System.Web.Security.SqlMembershipProvider" />
</providers>
</membership>
</system.web>

"David R." <da***********@nospam.com> a écrit dans le message de news:
uS**************@TK2MSFTNGP15.phx.gbl...
Is there a way to remove the security question step from the Password
Recovery control?

i.e. I just want the user to enter the username and have the password
emailed to him immediately. No need for the security question.

Jan 9 '06 #5

This discussion thread is closed

Replies have been disabled for this discussion.