* [FIX] Solves #394. Fixed the Blowfish salt length to 22 chars long. Thanks to @ipshenicyn for the feedback.

This commit is contained in:
nuxsmin
2017-01-31 11:43:04 +01:00
parent 1aa1f12f6d
commit dc0610b868

View File

@@ -285,7 +285,7 @@ class Crypt
$salt = Config::getConfig()->getPasswordSalt();
}
$salt = '$2y$07$' . $salt . '$';
$salt = '$2y$07$' . substr($salt, 0, 21) . '$';
return substr(crypt($string, $salt), 7, 32);
}