% ErrorText="" Username = "" Password = "" Email = "" If Request.Form("action") = "Lookup" Then Username = Request.Form("username") Email = Request.Form("email") 'Try Username first SQL = "select username, password, email from user where username = '" & SqlEsc(Username) & "' or email = '" & SqlEsc(Email) & "'" Set RS = Conn.Execute(SQL) If NOT RS.EoF Then Call SendForgotPasswordMail(RS("username"), RS("password"), RS("email")) ErrorText="A mail with your login information has been sent. You should receive it shortly." Call LogIt("forgot_password.asp", "", "", "Mail sent", "", "", "", "") Else ErrorText="We were unable to match the given username or email address to an account." Call LogIt("forgot_password.asp", "", "", "Account or email not found", "", "", "", "") End If End If %>
| Forgot your password? If you have forgotten your password, enter your username or email adress below, and you should receive an email shortly, with your login information. |