mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Password changing notification issue on new member
With `notify_password_change = true`, new member is receiving notification email regarding password changing when they should not.
This commit is contained in:
parent
3b06385b7d
commit
68f75a9e25
@ -907,6 +907,7 @@ class Member extends DataObject
|
||||
&& $this->isChanged('Password')
|
||||
&& $this->record['Password']
|
||||
&& static::config()->get('notify_password_change')
|
||||
&& $this->isInDB()
|
||||
) {
|
||||
Email::create()
|
||||
->setHTMLTemplate('SilverStripe\\Control\\Email\\ChangePasswordEmail')
|
||||
|
Loading…
x
Reference in New Issue
Block a user