From a3e4fd551e0bbaca75bef553d990a4bcb9ea2e79 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Sun, 8 Mar 2015 18:30:56 +0100 Subject: [PATCH] Add 'invalid' password hashing scheme --- .../install/files/lib/util/PasswordUtil.class.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/wcfsetup/install/files/lib/util/PasswordUtil.class.php b/wcfsetup/install/files/lib/util/PasswordUtil.class.php index 6b6481b110..013926e416 100644 --- a/wcfsetup/install/files/lib/util/PasswordUtil.class.php +++ b/wcfsetup/install/files/lib/util/PasswordUtil.class.php @@ -50,6 +50,7 @@ final class PasswordUtil { 'joomla2', // Joomla 2.x 'joomla3', // Joomla 3.x 'cryptMD5', + 'invalid', // Never going to match anything ); /** @@ -700,5 +701,18 @@ final class PasswordUtil { return false; } + /** + * Returns false. + * + * @param string $username + * @param string $password + * @param string $salt + * @param string $dbHash + * @return boolean + */ + protected static function invalid($username, $password, $salt, $dbHash) { + return false; + } + private function __construct() { } } -- 2.20.1