From a4450f2c34e15d684be2ba0bab7ee65f2d483047 Mon Sep 17 00:00:00 2001 From: smeyer Date: Tue, 28 Jul 2015 16:37:07 +0200 Subject: [PATCH] 0014976: New file versions can be uploaded even if session is expired --- Services/Authentication/classes/class.ilAuthBase.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Services/Authentication/classes/class.ilAuthBase.php b/Services/Authentication/classes/class.ilAuthBase.php index e73c92716507..8702a090ae29 100644 --- a/Services/Authentication/classes/class.ilAuthBase.php +++ b/Services/Authentication/classes/class.ilAuthBase.php @@ -136,6 +136,7 @@ protected function loginObserver($a_username,$a_auth) if(!$user->getActive()) { $this->status = AUTH_USER_INACTIVE; + $a_auth->logout(); return; } @@ -143,6 +144,7 @@ protected function loginObserver($a_username,$a_auth) if(!$user->checkTimeLimit()) { $this->status = AUTH_USER_TIME_LIMIT_EXCEEDED; + $a_auth->logout(); return; } @@ -156,6 +158,7 @@ protected function loginObserver($a_username,$a_auth) if (!preg_match("/^".$clientip."$/", $_SERVER["REMOTE_ADDR"])) { $this->status = AUTH_USER_WRONG_IP; + $a_auth->logout(); return; } } @@ -165,6 +168,7 @@ protected function loginObserver($a_username,$a_auth) ilObjUser::hasActiveSession($user_id)) { $this->status = AUTH_USER_SIMULTANEOUS_LOGIN; + $a_auth->logout(); return; }