close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Does "forgot password" actually work?

Thread began 5/23/2012 12:39 pm by akstudio | Last modified 5/24/2012 10:56 am by Jason Byrnes | 1639 views | 3 replies |

akstudio

Does "forgot password" actually work?

Ive setup my own pages (login, forgot password, etc) and I used the security Assist email password in the behaviors panel and it doest work. Searching here I've realized it has a bug.

So I thought if I auto generate "create security pages" that I could take the code from there, but it doest work either.

What must I do, to get this operational?


if($_SERVER["REQUEST_METHOD"] == "POST"){
//WA SecurityAssist Email object="mail"
$WA_Auth_Parameter = array(
"connection" => $conn_resellers,
"database" => $database_conn_resellers,
"tableName" => "users",
"filterColumn" => "email",
"filterEncryption" => "",
"columnValue" => "".((isset($_POST["email"]))?$_POST["email"]:"") ."",
"columnType" => "text",
"usernameColumn" => "email",
"usernameEncryption" => "",
"passwordColumn" => "password",
"passwordEncryption" => "",
"selectColumns" => array("email","password"),
"sessionVariables" => array(""),
"successRedirect" => "success.php",
"failRedirect" => "fail.php",
"keepQueryString" => FALSE,
"toAddressColumn" => "email",
"toAddressEncryption" => "",
"fromAddress" => "myemail@email.com",
"fromAddressDisplay" => "Your Password",
"subject" => "Reseller password",
"mailBody" => "User name: [UserName]\nPassword: [UserPassword]",
"emailFunction" => "WA_SecurityAssist_Email_1_SendMail"
);

WA_Auth_ForgotPassword($WA_Auth_Parameter);
}
?>

Sign in to reply to this post

Jason ByrnesWebAssist

well, "and it doest work" is a very broad statement.

Do you mean to say that it redirects to the success page, but never sends an email?

or that it redirects to the failure page when you enter an email address that exists in the database?

or that you are getting a php error message?

please be specific in what "and it doest work" means.

Also, are you testing locally or testing on the remote server?

If testing locally, it wont be able to send the email unless you install and configure an SMTP server.

If testing remotely, you will need to know the SMTP server email settings for your host, and will need to edit the setting on the email object tab to use the correct SMTP server.

Sign in to reply to this post

akstudio

Ahh, sorry about that...

Ok here is the specifics.

No php errors

Im working on localhost, with no SMPT configured. Entering in an email and submitting it redirects me to a failure page.

Maybe I am confused about the tool and all.

My table is
ID
f_name
l_name
email
password

and the securityAssist tool is
Lookup column: email
lookup encryption: none

lookup value: <?php echo ((isset($_POST["email"]))?$_POST["email"]:""); ?>

user name column: email
password column: password

(no encryption on either)

Now, I would guess that it would validate and direct me to the "success" page.. no validation would send me to fail, correct? or does it fail because i dont have email configured at all on localhost?

Sign in to reply to this post

Jason ByrnesWebAssist

Yes, it will go to the failure page if it fails to connect to an email server.

You will need to test the email password page on the live server.

also, you need to update the email server settings in the behavior to use the correct SMTP server.

Sign in to reply to this post

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...