close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Issue with password reset page.

Thread began 10/02/2015 4:04 pm by mycalidesigns | Last modified 10/05/2015 2:40 pm by Ray Borduin | 660 views | 10 replies |

mycalidesigns

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

Sign in to reply to this post

Ray BorduinWebAssist

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.

Sign in to reply to this post

mycalidesigns

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.

Sign in to reply to this post

Ray BorduinWebAssist

Try updating line 140 from:
$WA_MailObject = WA_SecurityAssist_Definition("yourmailserver.yourdomain.com","25","","","","");

to;
$WA_MailObject = WA_SecurityAssist_Definition("","25","","","","");

Sign in to reply to this post

mycalidesigns

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.

Sign in to reply to this post

dbooker

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.

Sign in to reply to this post

mycalidesigns

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);
}
?>

Sign in to reply to this post

Ray BorduinWebAssist

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.

Sign in to reply to this post

mycalidesigns

PM

Sign in to reply to this post

Ray BorduinWebAssist

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.

Sign in to reply to this post
loading

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

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.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...