mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Fixed testing of member-generated emails
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@58487 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
ab28c127d0
commit
ac6a3023c0
@ -505,7 +505,9 @@ class Member extends DataObject {
|
||||
}
|
||||
}
|
||||
|
||||
if(Director::isLive() &&
|
||||
// We don't send emails out on dev/tests sites to prevent accidentally spamming users.
|
||||
// However, if TestMailer is in use this isn't a risk.
|
||||
if((Director::isLive() || Email::mailer() instanceof TestMailer) &&
|
||||
isset($this->changed['Password']) && $this->changed['Password'] && $this->record['Password'] &&
|
||||
Member::$notify_password_change) $this->sendInfo('changePassword');
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user