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:
Guy Sartorelli 2023-08-15 17:22:30 +12:00 committed by GitHub
commit 765aeb7200
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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');