From e966c24abe3e5c8468566c25453eac615e908138 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Thu, 3 Jan 2013 18:30:17 +0100 Subject: [PATCH] Fixed hash creation --- wcfsetup/install/files/lib/util/PasswordUtil.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); } /** -- 2.20.1