Note that there are some explanatory texts on larger screens.

plurals
  1. POPasswordRecovery Issues
    text
    copied!<p>building an application and I have had some trouble with the PasswordRecovery utility. I am using the ASP.NET built in Configuration Tool. My issue is that I cannot use the provided PasswordRecovery control because I do not have an SMTP server setup and don't know how to do so.</p> <p>I have tried to customize the control to allow me to display the users password inside a label after a succesful password recovery. Here is my code so far:</p> <pre><code>protected void PasswordRecovery1_SendingMail(object sender, MailMessageEventArgs e) { e.Cancel = true; MembershipUser user; user = Membership.GetUser(PasswordRecovery1.UserName); label1.Text = user.GetPassword(); } </code></pre> <p>here is the error I recieve:</p> <pre><code>This Membership Provider has not been configured to support password retrieval. </code></pre> <p>now I did some research on this error and came across something odd. The ASP.NET tool did not add any type of Membership Provider to my web.config file. Also when I try to test the database through the configuration tool here is what I get:</p> <pre><code>Could not establish a connection to the database. If you have not yet created the SQL Server database, exit the Web Site Administration tool, use the aspnet_regsql command-line utility to create and configure the database, and then return to this tool to set the provider. </code></pre> <p>Can anybody help me to access the user's password after a successful password recovery? If it is easy to get the SMTP going I may attempt that, but I think it would be easier to just show the users password on the label?</p> <p>Thanks In Advance.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload