469,946 Members | 1,435 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,946 developers. It's quick & easy.

<asp:PasswordRecovery -- remove security question

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
4 2552
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
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
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
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.

Similar topics

5 posts views Thread by Ken Dopierala Jr. | last post: by
reply views Thread by CharlesA | last post: by
1 post views Thread by ned.kraushaar | last post: by
1 post views Thread by rn5a | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.