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