forgot password server behaviour doesnt seem to work
Hi I have attached the main php file and will also show the snippet of code here.
I have an email address in database and the lookup on my forgot password page doesnt seem to find the email address entered. is there something obvious from the code that I am missing/getting wrong?
<?php
if (isset($_POST["forgot"]) || isset($_POST["forgot_x"])) {
$CheckNew = new WA_MySQLi_Auth($ecartdb);
$CheckNew->Action = "checknew";
$CheckNew->Table = "users";
$CheckNew->addFilter("UserEmail", "!=", "s", "".((isset($_POST["email"]))?$_POST["email"]:"") ."");
$FailedRedirect = "forgot-password.php?Alert=NoAccount";
if (function_exists("rel2abs")) $FailedRedirect = $FailedRedirect?rel2abs($FailedRedirect,dirname(__FILE__)):"";
$CheckNew->FailRedirect = $FailedRedirect;
$CheckNew->execute();
}
?>
<form method="post" name="forgot" class="standard" id="forgot">
<label>Email Address</label>
<input name="email" type="email" required placeholder="Please provide your email address" title="Required" tabindex="1" autocomplete="off" pattern="[^@]+@[^@]+\.[a-zA-Z]{2,6}">
<button name="forgot">Send</button>
</form>
Regards
Chris