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:
Anh Le 2018-08-13 14:13:05 +07:00 committed by GitHub
parent 3b06385b7d
commit 68f75a9e25
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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')