diff options
author | xue <> | 2007-11-26 00:33:12 +0000 |
---|---|---|
committer | xue <> | 2007-11-26 00:33:12 +0000 |
commit | ae1914700563c6a15d48ba7495ceeaa4792abba5 (patch) | |
tree | a60068c69a040a32da8054dfdffd86ae84172a22 /framework/Security | |
parent | 0450afdd1b514e10e1adba2efac00e57637f6854 (diff) |
a minor sanity check.
Diffstat (limited to 'framework/Security')
-rw-r--r-- | framework/Security/TAuthManager.php | 3 |
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);
|