From ae1914700563c6a15d48ba7495ceeaa4792abba5 Mon Sep 17 00:00:00 2001 From: xue <> Date: Mon, 26 Nov 2007 00:33:12 +0000 Subject: a minor sanity check. --- framework/Security/TAuthManager.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'framework/Security') diff --git a/framework/Security/TAuthManager.php b/framework/Security/TAuthManager.php index 7a6b96a1..03f011c6 100644 --- a/framework/Security/TAuthManager.php +++ b/framework/Security/TAuthManager.php @@ -349,7 +349,8 @@ class TAuthManager extends TModule { if($this->_userManager->validateUser($username,$password)) { - $user=$this->_userManager->getUser($username); + if(($user=$this->_userManager->getUser($username))===null) + return false; $this->updateSessionUser($user); $this->getApplication()->setUser($user); -- cgit v1.2.3