Connecting Tech Pros Worldwide Help | Site Map

<asp:PasswordRecovery -- remove security question

David R.
Guest
 
Posts: n/a
#1: Jan 8 '06
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.




Alain Hogue
Guest
 
Posts: n/a
#2: Jan 8 '06

re: <asp:PasswordRecovery -- remove security question


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." <davidrnoreply@nospam.com> a écrit dans le message de news:
uSmRIxCFGHA.2300@TK2MSFTNGP15.phx.gbl...[color=blue]
> 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.
>
>
>
>[/color]


Christopher Reed
Guest
 
Posts: n/a
#3: Jan 9 '06

re: <asp:PasswordRecovery -- remove security question


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" <alain.hogue@tech-mentor.com> wrote in message
news:pRbwf.106$Pq4.20191@news20.bellglobal.com...[color=blue]
> 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." <davidrnoreply@nospam.com> a écrit dans le message de news:
> uSmRIxCFGHA.2300@TK2MSFTNGP15.phx.gbl...[color=green]
>> 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.[/color][/color]


alain.hogue@gmail.com
Guest
 
Posts: n/a
#4: Jan 9 '06

re: <asp:PasswordRecovery -- remove security question


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:[color=blue]
> 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.[/color]

Alain Hogue
Guest
 
Posts: n/a
#5: Jan 9 '06

re: <asp:PasswordRecovery -- remove security question


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." <davidrnoreply@nospam.com> a écrit dans le message de news:
uSmRIxCFGHA.2300@TK2MSFTNGP15.phx.gbl...[color=blue]
> 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.
>
>
>
>[/color]


Closed Thread