Commit 4e9bb39edb29ae296b9677018553ae1becc17cef
1 parent
35e609fc
do not allow disabled users to login.
git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@5956 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
4 additions
and
0 deletions
lib/session/Session.inc
| ... | ... | @@ -51,6 +51,10 @@ class Session { |
| 51 | 51 | } |
| 52 | 52 | } |
| 53 | 53 | |
| 54 | + if ($oUser->getDisabled()) { | |
| 55 | + return PEAR::raiseError("Your account has been disabled. Please contact the system administrator for assistance."); | |
| 56 | + } | |
| 57 | + | |
| 54 | 58 | // bind user id to session |
| 55 | 59 | $_SESSION["userID"] = $iUserId; |
| 56 | 60 | $_SESSION["KTErrorMessage"] = array(); | ... | ... |