BUGFIX Fixed regression where Member::PasswordEncryption field wouldn't be set to the default

This commit is contained in:
Sean Harvey 2012-03-09 17:28:28 +13:00
parent 033a1e593a
commit d28da56e19
2 changed files with 2 additions and 2 deletions

View File

@ -659,7 +659,7 @@ class Member extends DataObject implements TemplateGlobalProvider {
$encryption_details = Security::encrypt_password(
$this->Password, // this is assumed to be cleartext
$this->Salt,
$this->PasswordEncryption,
($this->PasswordEncryption) ? $this->PasswordEncryption : Security::get_password_encryption_algorithm(),
$this
);

View File

@ -627,4 +627,4 @@ class MemberTest_PasswordValidator extends PasswordValidator {
$this->characterStrength(3, array('lowercase','uppercase','digits','punctuation'));
}
}
}