Browse Source

php - fix password reset failure when 2fa is enabled

master
kanoi 9 years ago
parent
commit
d2aa6b1aee
  1. 4
      pool/page_reset.php

4
pool/page_reset.php

@ -88,9 +88,9 @@ function dbreset()
if ($emailinfo['STATUS'] != 'ok') if ($emailinfo['STATUS'] != 'ok')
syserror(); syserror();
$ans = resetPass($user, $pass); $ans = resetPass($user, $pass, $twofa);
if ($ans['STATUS'] != 'ok') if ($ans['STATUS'] != 'ok')
syserror(); return resetfail();
unset($_SESSION['reset_user']); unset($_SESSION['reset_user']);
unset($_SESSION['reset_hash']); unset($_SESSION['reset_hash']);

Loading…
Cancel
Save