mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
BUGFIX: Include salt in legacy password encryptor (from r91743)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.4@91746 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
45bbebe19f
commit
f9c0ce652d
@ -161,7 +161,7 @@ class PasswordEncryptor_PHPHash extends PasswordEncryptor {
|
||||
*/
|
||||
class PasswordEncryptor_LegacyPHPHash extends PasswordEncryptor_PHPHash {
|
||||
function encrypt($password, $salt = null, $member = null) {
|
||||
$password = parent::encrypt($password, $member, $salt);
|
||||
$password = parent::encrypt($password . $salt, $member, $salt);
|
||||
|
||||
// Legacy fix: This shortening logic is producing unpredictable results.
|
||||
//
|
||||
|
Loading…
x
Reference in New Issue
Block a user