diff options
Diffstat (limited to 'php/lib/auth.php')
-rw-r--r-- | php/lib/auth.php | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/php/lib/auth.php b/php/lib/auth.php index 610b3c2..7101886 100644 --- a/php/lib/auth.php +++ b/php/lib/auth.php @@ -48,9 +48,7 @@ public static function query($username,$password) if ($res && DB::numrows($res)>0) { $userrow = DB::fetch($res,PDO::FETCH_ASSOC); if (!password_verify($password, $userrow['password'])) { - if ($userrow['password'] !== md5($password)) - return false; - static::password_upgrade($userrow, $username, $password); + return false; } if (password_needs_rehash($userrow['password'], PASSWORD_DEFAULT)) static::password_upgrade($userrow, $username, $password); |