From 93d03f71ef8700c15d424628057d72e357c06233 Mon Sep 17 00:00:00 2001 From: Sunny Side Up Date: Tue, 15 Aug 2023 16:29:52 +1200 Subject: [PATCH] MINOR: set a default password encryption for a member, if no password encryption is set. --- src/Security/Member.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Security/Member.php b/src/Security/Member.php index 804356fab..b715f0fde 100644 --- a/src/Security/Member.php +++ b/src/Security/Member.php @@ -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');