Merged revisions 43336 via svnmerge from

svn://svn.silverstripe.com/silverstripe/modules/sapphire/branches/2.1.0-rc3oriwave2

........
  r43336 | hsmith | 2007-10-12 10:31:23 +1300 (Fri, 12 Oct 2007) | 1 line
  
  Added Member::$notify_password_change
........


git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@49777 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sam Minnee 2008-02-19 00:27:07 +00:00
parent a7c4af9d2e
commit 1b53a622b4

View File

@ -53,6 +53,8 @@ class Member extends DataObject {
);
static $notify_password_change = false;
/**
* This method is used to initialize the static database members
*
@ -448,7 +450,7 @@ class Member extends DataObject {
}
}
if($this->changed['Password']) $this->sendInfo('changePassword');
if($this->changed['Password'] && Member::$notify_password_change) $this->sendInfo('changePassword');
parent::onBeforeWrite();
}