mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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:
parent
7590ae194b
commit
00a39e6212
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user