|
|
@ -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']); |
|
|
|