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:
Sam Minnee 2009-11-16 03:29:01 +00:00
parent 45bbebe19f
commit f9c0ce652d

View File

@ -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.
//