Remove SessionHandler::validate()
authorTim Düsterhus <duesterhus@woltlab.com>
Wed, 30 Sep 2020 14:36:14 +0000 (16:36 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Thu, 1 Oct 2020 14:09:26 +0000 (16:09 +0200)
This method became a no-op since the validation options were removed.

wcfsetup/install/files/lib/system/session/SessionHandler.class.php

index b617f2a0e2ec5b78407320b6ca202a496d450265..a6fb3cb4ed0456e502a9be7b567d7650bb34b8d3 100644 (file)
@@ -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.
         */