473,396 Members | 1,859 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

<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 2694
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: RSB | last post by:
Hi Every one, Having tuff time to make this work .. i want to have a button and on my form say Delete button. So once i click on it i want to confirm "Are you sure?" on the Client Side and if...
17
by: Fresh Air Rider | last post by:
Hello Could anyone please explain how I can pass more than one arguement/parameter value to a function using <asp:linkbutton> or is this a major shortfall of the language ? Consider the...
5
by: Ken Dopierala Jr. | last post by:
Hi, This is just a query about what people use most. Up until today I've been using <asp:Table> tags to build my tables. We just outsourced our HTML design to a local guy and when I got it back...
4
by: z. f. | last post by:
Hi, i stated that this is an advanced question because i have a post from few days ago that i received answers to with suggestions that looked good but did not work, so please if you post a...
15
by: John Blair | last post by:
Hi, Code attached but the line that gives me an error is MyDataGrid.Columns(2).Visible = False It actually gives me an error for any value instead of 2 even when 9 bound columns of data exist....
0
by: delfion | last post by:
Hi. I have an <asp:dropdown> control to which I add items on the client, when the page is posted back I get this error message. Invalid postback or callback argument. Event validation is...
0
by: CharlesA | last post by:
Hi folks, I'm using ASP.net 1.1 with C# I've got this kind of thing going <div class="row"> <label class="col1">Rm Name</label> <asp:textbox id="txtRM" runat="server" cssclass="col2"...
1
by: ned.kraushaar | last post by:
Currently, the email that gets sent to a user with a new password is very cryptic: Please return to the site and log in using the following information. User Name: nedkraushaar Password:...
1
by: rn5a | last post by:
Consider the following code: <script runat="server"> Sub Page_Load(obj As Object, ea As EventArgs) Dim sqlReader As SqlDataReader sqlReader = 'calling a function that returns SqlDataReader ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.