MINOR: set a default password encryption for a member, if no password encryption is set.

This commit is contained in:
Sunny Side Up 2023-08-15 16:29:52 +12:00 committed by GitHub
parent 9a26bebf9e
commit 93d03f71ef
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');