Fixed hash creation
authorAlexander Ebert <ebert@woltlab.com>
Thu, 3 Jan 2013 17:30:17 +0000 (18:30 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Thu, 3 Jan 2013 17:30:17 +0000 (18:30 +0100)
wcfsetup/install/files/lib/util/PasswordUtil.class.php

index 0aabfa8d75c8fabd1d61e4712d48b541858bdbf7..111c73e094e72a8a15053b24016998443b43dc58 100644 (file)
@@ -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);
        }
        
        /**