summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrea Bugada <andrea.bugada@gmail.com>2015-10-03 18:00:29 +0200
committerAndrea Bugada <andrea.bugada@gmail.com>2015-10-03 18:00:29 +0200
commit478c6f92faf675d8b788ef2b5841e48c62bbb821 (patch)
treea3cbe5385fd754a6e66350d16063a905372a684f
parent1801196345d08b8e72fd41052766887eb595928d (diff)
downloadPHPAuth-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-xauth.class.php1
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;