In this article i will tell you how to enable password retrieval in Asp.Net.
In the Previous articles i explained Get Selected RadioButton Value of RadioButtonList using C# and ASP.Net, how to create serial no. column in gridview using asp.net, Add check boxes column in DataGridView for deleting records from database, what is query string and how to use it in asp.net, how to retrieve logged in user password using asp.net and many more about ASP.Net.
If EnablePasswordRetrieval is set to false in web .config, the underlying membership provider may throw a HttpException.
The providers that are included with the .NET Framework support multiple password formats to enhance password security. If the password format is set to Hashed, then users will not be able to retrieve their existing password from the database. The Hashed password format provides one-way encoding of password values. Passwords are "hashed" and compared to values stored in the database for authentication. "Hashed" values cannot be un-encoded to retrieve the original password value.
To Enable password retrieval , you’ll need to have enablePasswordRetrieval set to true in the web.config. You can do this in the <membership> node under <system.web>. It’ll look something like below :
<add connectionStringName="database_con" applicationName="MySqlConnection" minRequiredPasswordLength="4"
minRequiredNonalphanumericCharacters="0" enablePasswordRetrieval="true" enablePasswordReset="true"
requiresQuestionAndAnswer="true" requiresUniqueEmail="true" passwordFormat="Clear" name="Sqlprovider"
Hope this Helps.