Issue with password reset page.
After creating the forgot password page, i tested and its working fine. The only thing it is not redirecting to the appropriate page. Please see attached
After creating the forgot password page, i tested and its working fine. The only thing it is not redirecting to the appropriate page. Please see attached
At what stage is it not redirecting to the appropriate page? After resetting the password you aren't seeing the login page?
Is there a url where I can view the page in action? Maybe send me a reset password link in the private area so I can try.
Well when you fill in the fields and hit submit. It redirects to the failure page. but email get sent with the link to reset password and it works great.
Try updating line 140 from:
$WA_MailObject = WA_SecurityAssist_Definition("yourmailserver.yourdomain.com","25","","","","");
to;
$WA_MailObject = WA_SecurityAssist_Definition("","25","","","","");
this is not the issue. when i submit for password reset it searches DB to make sure account exists. I have it look at email column so if account exists it redirects to a page that says. "email will be sent for password reset" instead i get "Your email address could not be found in our records. Please try again."
Something with the DB function were it looks up the account.
I looked into the code and that error occurs when it thinks the email didn't send properly. It finds it in the database without issue. Can I get FTP access? That would allow me to debug it myself.
I am talking about the code below. what is causing the check to verify that the email exists then it redirects to appropriate page.
<?php
if(isset($_POST["ForgotPassword_submit"])){
//WA SecurityAssist Encrypted Email object="mail"
$WA_Auth_Parameter = array(
"encrypted" => true,
"connection" => $socialDB,
"database" => $database_socialDB,
"tableName" => "users",
"keyColumn" => "idu",
"filterColumn" => "email",
"filterEncryption" => "",
"columnValue" => "".((isset($_POST["Forgot_Password_group_email"]))?$_POST["Forgot_Password_group_email"]:"") ."",
"columnType" => "text",
"usernameColumn" => "username",
"usernameEncryption" => "",
"passwordColumn" => "password",
"passwordEncryption" => "sha1",
"selectColumns" => array("username","password","email"),
"sessionVariables" => array(""),
"successRedirect" => "login.php?emailedPassword=1",
"failRedirect" => "forgotpassword.php?notFound=1",
"returnURL" => "forgotpassword.php",
"keepQueryString" => TRUE,
"toAddressColumn" => "email",
"toAddressEncryption" => "",
"fromAddress" => "email@firstez.com",
"fromAddressDisplay" => "",
"subject" => "Forgot Password",
"mailBody" => "webassist/security_assist/email/forgotpassword_email4.php",
"emailFunction" => "WA_SecurityAssist_Email_1_SendEncryptedMail"
);
WA_Auth_ForgotEncryptedPassword($WA_Auth_Parameter);
}
?>
I know... It calls the function above with the code that I referenced:
"emailFunction" => "WA_SecurityAssist_Email_1_SendEncryptedMail"
If you post FTP information I'll debug it, but it appears the email is sending a failure message even though it is sending and that is why it is sending it to the failure page. The surprising part is that the email is actually sending since I got it.
It looks like you had an older version of webassist/security_assist/mail_php.php. I updated that to the latest version and it appears to be working now.
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
These out-of-the-box solutions provide you proven, tested applications that can be up and running now. Build a store, a gallery, or a web-based email solution.