diff --git a/lam/lib/account.inc b/lam/lib/account.inc index 97b9844c..d43a17b9 100644 --- a/lam/lib/account.inc +++ b/lam/lib/account.inc @@ -150,7 +150,7 @@ function pwd_hash($password, $enabled = true, $hashType = 'SSHA') { $hash = ""; switch ($hashType) { case 'CRYPT': - $hash = "{CRYPT}" . crypt($password); + $hash = "{CRYPT}" . crypt($password, generateSalt(2)); break; case 'CRYPT-SHA512': $hash = "{CRYPT}" . crypt($password, '$6$' . generateSalt(16));