From c7231c6935957bffefafc167a2c75d471a55d0e7 Mon Sep 17 00:00:00 2001 From: Andrew O'Neil Date: Tue, 2 Oct 2007 22:18:45 +0000 Subject: [PATCH] mlanthaler: Fixed typo and updated docBlock (merged from gsoc branch, r42439) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@42972 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- security/MemberAuthenticator.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/security/MemberAuthenticator.php b/security/MemberAuthenticator.php index 22b96bd31..fc0eb712b 100644 --- a/security/MemberAuthenticator.php +++ b/security/MemberAuthenticator.php @@ -24,16 +24,19 @@ class MemberAuthenticator extends Authenticator { * {@link Form::sessionMessage()} * @return bool|Member Returns FALSE if authentication fails, otherwise * the member object + * @see Security::setDefaultAdmin() */ public static function authenticate(array $RAW_data, Form $form = null) { $SQL_user = Convert::raw2sql($RAW_data['Email']); - // Default login (see {@setDetaultAdmin()}) + // Default login (see Security::setDefaultAdmin()) if(Security::check_default_admin($RAW_data['Email'], $RAW_data['Password'])) { $member = Security::findAnAdministrator(); } else { $member = DataObject::get_one("Member", "Email = '$SQL_user' AND Password IS NOT NULL"); - if($member && ($member->checkPassword($RAW_data['Password']) == false)) $member = null; + if($member && ($member->checkPassword($RAW_data['Password']) == false)) { + $member = null; + } } if($member) {