mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
MINOR Formatting in Member
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@63469 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
b548ee6360
commit
17aad01848
@ -545,9 +545,15 @@ class Member extends DataObject {
|
||||
|
||||
// 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');
|
||||
if(
|
||||
(Director::isLive() || Email::mailer() instanceof TestMailer)
|
||||
&& isset($this->changed['Password'])
|
||||
&& $this->changed['Password']
|
||||
&& $this->record['Password']
|
||||
&& Member::$notify_password_change
|
||||
) {
|
||||
$this->sendInfo('changePassword');
|
||||
}
|
||||
|
||||
// The test on $this->ID is used for when records are initially created
|
||||
if(!$this->ID || (isset($this->changed['Password']) && $this->changed['Password'])) {
|
||||
|
Loading…
Reference in New Issue
Block a user