summaryrefslogtreecommitdiff
path: root/framework/Security/TAuthManager.php
diff options
context:
space:
mode:
Diffstat (limited to 'framework/Security/TAuthManager.php')
-rw-r--r--framework/Security/TAuthManager.php3
1 files changed, 2 insertions, 1 deletions
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);