From d2aa6b1aee7b39297e7accc3770f84a30527a458 Mon Sep 17 00:00:00 2001 From: kanoi Date: Mon, 28 Dec 2015 22:58:01 +1100 Subject: [PATCH] php - fix password reset failure when 2fa is enabled --- pool/page_reset.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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']);