mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-02 22:28:37 +02: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->isChanged('Password')
|
||||||
&& $this->record['Password']
|
&& $this->record['Password']
|
||||||
&& static::config()->get('notify_password_change')
|
&& static::config()->get('notify_password_change')
|
||||||
|
&& $this->isInDB()
|
||||||
) {
|
) {
|
||||||
Email::create()
|
Email::create()
|
||||||
->setHTMLTemplate('SilverStripe\\Control\\Email\\ChangePasswordEmail')
|
->setHTMLTemplate('SilverStripe\\Control\\Email\\ChangePasswordEmail')
|
||||||
|
Loading…
Reference in New Issue
Block a user