failedRedirect when password reset form is submitted
I am having an issue with my password reset form. It is working great, i receive the reset link for password reset. Only issue is that when the form goes through it returns to the failedRedirect(URL). I tried going through the helper file and I found the following. Not sure why its saying the email failed to send? please help.
if (!$WA_EmailSuccess && $WA_Auth_Parameter["failRedirect"]!=""){
$WA_Auth_Parameter["failRedirect"] = WA_Auth_BuildRedirectURL($WA_Auth_Parameter["failRedirect"], $WA_Auth_Parameter["keepQueryString"], FALSE);
if ($WA_UserFound) {
$WA_Auth_Parameter["failRedirect"] = $WA_Auth_Parameter["failRedirect"].((strpos($WA_Auth_Parameter["failRedirect"], '?') === false)?"?":"&")."EmailFail=true";
} else {
$WA_Auth_Parameter["failRedirect"] = $WA_Auth_Parameter["failRedirect"].((strpos($WA_Auth_Parameter["failRedirect"], '?') === false)?"?":"&")."notFound=true";
}
header("Location: ".$WA_Auth_Parameter["failRedirect"]);
exit();
}
}