1 |
commit: a7066d7bd83e18729d0b0a9efc3449decfa27a69 |
2 |
Author: Brian Evans <grknight <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Aug 19 14:02:09 2019 +0000 |
4 |
Commit: Brian Evans <grknight <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Aug 19 14:02:09 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/bouncer.git/commit/?id=a7066d7b |
7 |
|
8 |
php/lib/auth.php: Drop md5 upgrade check |
9 |
|
10 |
Signed-off-by: Brian Evans <grknight <AT> gentoo.org> |
11 |
|
12 |
php/lib/auth.php | 4 +--- |
13 |
1 file changed, 1 insertion(+), 3 deletions(-) |
14 |
|
15 |
diff --git a/php/lib/auth.php b/php/lib/auth.php |
16 |
index 610b3c2..7101886 100644 |
17 |
--- a/php/lib/auth.php |
18 |
+++ b/php/lib/auth.php |
19 |
@@ -48,9 +48,7 @@ public static function query($username,$password) |
20 |
if ($res && DB::numrows($res)>0) { |
21 |
$userrow = DB::fetch($res,PDO::FETCH_ASSOC); |
22 |
if (!password_verify($password, $userrow['password'])) { |
23 |
- if ($userrow['password'] !== md5($password)) |
24 |
- return false; |
25 |
- static::password_upgrade($userrow, $username, $password); |
26 |
+ return false; |
27 |
} |
28 |
if (password_needs_rehash($userrow['password'], PASSWORD_DEFAULT)) |
29 |
static::password_upgrade($userrow, $username, $password); |