From: Alexander Ebert Date: Thu, 3 Jan 2013 17:30:17 +0000 (+0100) Subject: Fixed hash creation X-Git-Tag: 2.0.0_Beta_1~584^2~1^2~6 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e966c24abe3e5c8468566c25453eac615e908138;p=GitHub%2FWoltLab%2FWCF.git Fixed hash creation --- diff --git a/wcfsetup/install/files/lib/util/PasswordUtil.class.php b/wcfsetup/install/files/lib/util/PasswordUtil.class.php index 0aabfa8d75..111c73e094 100644 --- a/wcfsetup/install/files/lib/util/PasswordUtil.class.php +++ b/wcfsetup/install/files/lib/util/PasswordUtil.class.php @@ -160,7 +160,7 @@ final class PasswordUtil { $salt = self::getRandomSalt(); } - return crypt($password, self::getSalt($salt)); + return crypt($password, $salt); } /** @@ -175,7 +175,7 @@ final class PasswordUtil { $salt .= self::$blowfishCharacters[mt_rand(0, $maxIndex)]; } - return $salt; + return self::getSalt($salt); } /**