diff options
author | Andrea Bugada <andrea.bugada@gmail.com> | 2015-10-03 18:00:29 +0200 |
---|---|---|
committer | Andrea Bugada <andrea.bugada@gmail.com> | 2015-10-03 18:00:29 +0200 |
commit | 478c6f92faf675d8b788ef2b5841e48c62bbb821 (patch) | |
tree | a3cbe5385fd754a6e66350d16063a905372a684f | |
parent | 1801196345d08b8e72fd41052766887eb595928d (diff) | |
download | PHPAuth-478c6f92faf675d8b788ef2b5841e48c62bbb821.zip PHPAuth-478c6f92faf675d8b788ef2b5841e48c62bbb821.tar.gz PHPAuth-478c6f92faf675d8b788ef2b5841e48c62bbb821.tar.bz2 |
reset key invalid if new password matches ol password
During the reset process if the new password matches the old password the request is cancelled from the db and the key became invalid and you have to request a new one.
-rwxr-xr-x | auth.class.php | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/auth.class.php b/auth.class.php index ecf5929..46a6327 100755 --- a/auth.class.php +++ b/auth.class.php @@ -967,7 +967,6 @@ class Auth if(password_verify($password, $user['password'])) { $this->addAttempt(); - $this->deleteRequest($data['id']); $return['message'] = $this->lang["newpassword_match"]; return $return; |