mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUGFIX: Include salt in legacy password encryptor
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@91743 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
0bb067eddf
commit
87e1454cd2
@ -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…
Reference in New Issue
Block a user