mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Fixed minor bug in password validation
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@54632 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
a93e0dc8ef
commit
4cb354b79a
@ -936,7 +936,7 @@ class Member extends DataObject {
|
||||
}
|
||||
}
|
||||
|
||||
if((!$this->ID && $this->Password) || (isset($this->changed['SetPassword']) && $this->changed['SetPassword'])) {
|
||||
if((!$this->ID && $this->SetPassword) || (isset($this->changed['SetPassword']) && $this->changed['SetPassword'])) {
|
||||
if(self::$password_validator) {
|
||||
$valid->combineAnd(self::$password_validator->validate($this->SetPassword, $this));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user