mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00: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')) {
|
if (!$this->ID || $this->isChanged('Password')) {
|
||||||
$this->encryptPassword();
|
$this->encryptPassword();
|
||||||
}
|
}
|
||||||
|
if (!$this->PasswordEncryption) {
|
||||||
|
$this->PasswordEncryption = Security::config()->get('password_encryption_algorithm');
|
||||||
|
}
|
||||||
// save locale
|
// save locale
|
||||||
if (!$this->Locale) {
|
if (!$this->Locale) {
|
||||||
$this->Locale = i18n::config()->get('default_locale');
|
$this->Locale = i18n::config()->get('default_locale');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user