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:
Sam Minnee 2009-11-16 03:25:41 +00:00
parent 0bb067eddf
commit 87e1454cd2

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