<asp:PasswordRecovery -- remove security question

  • Thread starter Thread starter David R.
  • Start date Start date
D

David R.

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

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

Back
Top