protected function authRoutes()
    {
        switch ($this->requestUrl) {
            case 'login':
                // Redirect already authenticated user visiting login page
                if ($this->user->getAuthenticated()) {
                    $this->redirectToPage($this->config["afterLogin"]);
                }
                break;
            case 'logout':
                // Redirect non authenticated user to login
                if (!$this->user->getAuthenticated()) {
                    $this->redirectToLogin();
                }
                $this->checkLogoutSubmission();
                break;
        }
    }
protected function authRoutes()
    {
        switch ($this->requestUrl) {
            case 'login':
                // Redirect already authenticated user visiting login page
                if ($this->user->getAuthenticated()) {
                    $this->redirectToPage($this->config["afterLogin"]);
                }
                break;
            case 'logout':
                // Redirect non authenticated user to login
                if (!$this->user->getAuthenticated()) {
                    $this->redirectToLogin();
                }
                $this->checkLogoutSubmission();
                break;
        }
    }
protected function authRoutes ( ) { switch ( $ this -> requestUrl ) { case 'login' : // Redirect already authenticated user visiting login page if ( $ this -> user -> getAuthenticated ( ) ) { $ this -> redirectToPage ( $ this -> config [ "afterLogin" ] ) ; } break ; case 'logout' : // Redirect non authenticated user to login if ( ! $ this -> user -> getAuthenticated ( ) ) { $ this -> redirectToLogin ( ) ; } $ this -> checkLogoutSubmission ( ) ; break ; } }
Plugin routes that are always present
Plugin routes that are always present