mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
MINOR: set a default password encryption for a member, if no password encryption is set.
This commit is contained in:
parent
9a26bebf9e
commit
93d03f71ef
@ -797,7 +797,9 @@ class Member extends DataObject
|
||||
if (!$this->ID || $this->isChanged('Password')) {
|
||||
$this->encryptPassword();
|
||||
}
|
||||
|
||||
if(! $this->PasswordEncryption) {
|
||||
$this->PasswordEncryption = Security::config()->get('password_encryption_algorithm');
|
||||
}
|
||||
// save locale
|
||||
if (!$this->Locale) {
|
||||
$this->Locale = i18n::config()->get('default_locale');
|
||||
|
Loading…
x
Reference in New Issue
Block a user