Merged revisions 52877 via svnmerge from

http://svn.silverstripe.com/open/modules/sapphire/branches/govtsecurity

........
  r52877 | sminnee | 2008-04-16 20:13:25 +1200 (Wed, 16 Apr 2008) | 1 line
  
  Validate SetPassword as well as Password by the member validator
........


git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@53491 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sam Minnee 2008-04-26 06:36:03 +00:00
parent 7590ae194b
commit 00a39e6212

View File

@ -936,6 +936,12 @@ class Member extends DataObject {
}
}
if((!$this->ID && $this->Password) || (isset($this->changed['SetPassword']) && $this->changed['SetPassword'])) {
if(self::$password_validator) {
$valid->combineAnd(self::$password_validator->validate($this->SetPassword, $this));
}
}
return $valid;
}