mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #10917 from sunnysideup/5-2
MINOR: set a default password encryption for a member, if no password encryption…
This commit is contained in:
commit
765aeb7200
@ -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…
Reference in New Issue
Block a user