Password recovery problem

Discussion in 'ASP.NET 2.0' started by hubbamar, Apr 29, 2008.

  1. Hi,

    I've just added a SQL password recovery tool to my site, which asks for the user name, security question, then sends an email with a new password.

    This works OK, but when I try to login using this new password - it is not accepted! -And the old password is also no loger accepted!

    Any ideas?
     
  2. Bruce

    Bruce DiscountASP.NET Staff

    that's weird.. the email should contain the correct password. make sure you don't include any white space.


    Bruce

    DiscountASP.NET
    www.DiscountASP.NET
     
  3. I had this same thing happen today and found from several searches that
    if you accidentally double click on your login button in debug mode it will create this line of code:
    protected void Login1_Authenticate(object sender, AuthenticateEventArgs e)
    {

    }
    in your login.aspx.cs file and this in your login.aspx file
    onauthenticate='Login1_Authenticate'

    Simply removing these remedied my problem. I guess having this code overrides the working method
    making validation fail.

    Jeff
     

Share This Page