From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id EFA3B138334 for ; Mon, 19 Aug 2019 14:02:45 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 136BBE086F; Mon, 19 Aug 2019 14:02:44 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id E9862E086F for ; Mon, 19 Aug 2019 14:02:43 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 62D2A349E40 for ; Mon, 19 Aug 2019 14:02:42 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 4223E6FF for ; Mon, 19 Aug 2019 14:02:40 +0000 (UTC) From: "Brian Evans" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Brian Evans" Message-ID: <1566223329.a7066d7bd83e18729d0b0a9efc3449decfa27a69.grknight@gentoo> Subject: [gentoo-commits] proj/bouncer:master commit in: php/lib/ X-VCS-Repository: proj/bouncer X-VCS-Files: php/lib/auth.php X-VCS-Directories: php/lib/ X-VCS-Committer: grknight X-VCS-Committer-Name: Brian Evans X-VCS-Revision: a7066d7bd83e18729d0b0a9efc3449decfa27a69 X-VCS-Branch: master Date: Mon, 19 Aug 2019 14:02:40 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: c12475cb-d6be-45de-a954-03a0d8b11963 X-Archives-Hash: cf9cf13e63bffa608f8ee363f015b7e9 commit: a7066d7bd83e18729d0b0a9efc3449decfa27a69 Author: Brian Evans gentoo org> AuthorDate: Mon Aug 19 14:02:09 2019 +0000 Commit: Brian Evans gentoo org> CommitDate: Mon Aug 19 14:02:09 2019 +0000 URL: https://gitweb.gentoo.org/proj/bouncer.git/commit/?id=a7066d7b php/lib/auth.php: Drop md5 upgrade check Signed-off-by: Brian Evans gentoo.org> php/lib/auth.php | 4 +--- 1 file changed, 1 insertion(+), 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);