From 3343128c5b1ee5d71b824baedfd06fc3f4445471 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Wed, 30 Sep 2020 16:36:14 +0200 Subject: [PATCH] Remove SessionHandler::validate() This method became a no-op since the validation options were removed. --- .../lib/system/session/SessionHandler.class.php | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/wcfsetup/install/files/lib/system/session/SessionHandler.class.php b/wcfsetup/install/files/lib/system/session/SessionHandler.class.php index b617f2a0e2..a6fb3cb4ed 100644 --- a/wcfsetup/install/files/lib/system/session/SessionHandler.class.php +++ b/wcfsetup/install/files/lib/system/session/SessionHandler.class.php @@ -443,14 +443,6 @@ class SessionHandler extends SingletonFactory { $this->virtualSession = SessionVirtual::getExistingSession($sessionID); } - if (!$this->validate()) { - $this->session = null; - $this->user = null; - $this->virtualSession = false; - - return; - } - $this->loadVirtualSession(); } @@ -490,15 +482,6 @@ class SessionHandler extends SingletonFactory { } } - /** - * Validates the ip address and the user agent of this session. - * - * @return boolean - */ - protected function validate() { - return true; - } - /** * Creates a new session. */ -- 2.20.1