From 4cb354b79a283a9ded18251d73a01a26804b8166 Mon Sep 17 00:00:00 2001 From: Sam Minnee Date: Thu, 15 May 2008 07:14:31 +0000 Subject: [PATCH] Fixed minor bug in password validation git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@54632 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- security/Member.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/security/Member.php b/security/Member.php index 9554a2613..3a2a4239a 100644 --- a/security/Member.php +++ b/security/Member.php @@ -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)); }