From: Tim Düsterhus Date: Sun, 8 Mar 2015 17:30:56 +0000 (+0100) Subject: Add 'invalid' password hashing scheme X-Git-Tag: 2.1.2~70 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a3e4fd551e0bbaca75bef553d990a4bcb9ea2e79;p=GitHub%2FWoltLab%2FWCF.git Add 'invalid' password hashing scheme --- 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() { } }