From 93d03f71ef8700c15d424628057d72e357c06233 Mon Sep 17 00:00:00 2001 From: Sunny Side Up Date: Tue, 15 Aug 2023 16:29:52 +1200 Subject: [PATCH 1/2] 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'); From 6c2b5bdbe174169e199c7b2d593f7b5f4697035c Mon Sep 17 00:00:00 2001 From: Sunny Side Up Date: Tue, 15 Aug 2023 17:06:46 +1200 Subject: [PATCH 2/2] Update src/Security/Member.php Co-authored-by: Guy Sartorelli <36352093+GuySartorelli@users.noreply.github.com> --- src/Security/Member.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Security/Member.php b/src/Security/Member.php index b715f0fde..2dffce485 100644 --- a/src/Security/Member.php +++ b/src/Security/Member.php @@ -797,7 +797,7 @@ class Member extends DataObject if (!$this->ID || $this->isChanged('Password')) { $this->encryptPassword(); } - if(! $this->PasswordEncryption) { + if (!$this->PasswordEncryption) { $this->PasswordEncryption = Security::config()->get('password_encryption_algorithm'); } // save locale