diff --git a/pool/page_reset.php b/pool/page_reset.php index 3a245258..0c6e878c 100644 --- a/pool/page_reset.php +++ b/pool/page_reset.php @@ -88,9 +88,9 @@ function dbreset() if ($emailinfo['STATUS'] != 'ok') syserror(); - $ans = resetPass($user, $pass); + $ans = resetPass($user, $pass, $twofa); if ($ans['STATUS'] != 'ok') - syserror(); + return resetfail(); unset($_SESSION['reset_user']); unset($_SESSION['reset_hash']);