473,837 Members | 1,646 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

<asp:PasswordRe covery -- 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 2730
Just use the requiresQuestio nAndAnswer 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*********@te ch-mentor.com> wrote in message
news:pR******** *********@news2 0.bellglobal.co m...
Just use the requiresQuestio nAndAnswer 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 requiresQuestio nAndAnswer 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>
<connectionStri ngs>
<add name="SqlServic es"
connectionStrin g="AttachDbFile name=|DataDirec tory|\aspnetdb. mdf;Integrated
Security=SSPI;I nitial
Catalog=aspnetd b;" />
</connectionStrin gs>

<membership>
<providers>
<add connectionStrin gName="SqlServi ces"
enablePasswordR etrieval="false "
enablePasswordR eset="true"
requiresQuestio nAndAnswer="fal se"
passwordFormat= "Hashed"
applicationName ="Cardfile"
requiresUniqueE mail="false"
maxInvalidPassw ordAttempts="5"
passwordAttempt Window="10"
name="SqlProvid er"
type="System.We b.Security.SqlM embershipProvid er" />
</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
2187
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 client select "Cancel" then i want to ignore the action and if "OK" selected then i want to Execute a Server side Event or Procedure. Now what is happening here is for "Delete1" button (in my code) even if Client Select Cancel it is still...
17
7392
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 following code fragments in which I want to list through all files on a directory with a link to download each file by passing a filename and whether or not to force the download dialog box to appear.
5
2107
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 today I was working with the html <table> <tr> <td> etc. What a difference that makes, server controls are even automatically declared in the code behind when using the generic HTML controls. I think I'm going to switch over to using them...
4
2022
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 reply make sure your suggestion actually works. like a <asp:button> control have a CausesValidation property that allows it to POST a button command event to the server without causing the page to make validation on form inputs, i need to get the...
15
3770
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. How do i hide a column? Thanks. MyConnection = New SqlConnection("server=(local);database=pubs;Trusted_Connection=yes") MyCommand = New SqlDataAdapter("select * from Authors",
0
1029
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 enabled using <pages enableEventValidation="true"/> in configuration or <%@ Page EnableEventValidation="true" %> in a page. For security purposes, this feature verifies that arguments to postback or callback events originate from the server control...
0
1621
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" ReadOnly="True" EnableViewState="False"></asp:textbox> <label class="col3">Rm Phone</label> <asp:textbox id="txtRmPhone" runat="server" cssclass="col4" ReadOnly="True"
1
4329
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: @(])1L7s!.xUD5 I would like to add some additional text and found that one can use custom text specified in a text file by using the <MailDefinition> tags within the <asp:PasswordRecovery> tags such as below:
1
5748
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 dlCart.DataSource = sqlReader dlCart.DataBind
0
9683
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10883
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10579
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10633
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10276
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9412
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
7007
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4479
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4050
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.