Merge pull request #8316 from anhld/anhld-patch-1

Password changing notification issue on new member
This commit is contained in:
Robbie Averill 2018-08-23 14:03:17 +12:00 committed by GitHub
commit 050afd79c1
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')