public function redirectToLogin() { View::set("login_message", $this->authMethodInstance->getMessage()); View::set("login_status", false); $route = Ntentan::getRouter()->getRoute(); $loginRoute = $this->parameters->get('login_route', 'login'); if ($route !== $loginRoute) { return Redirect::path($loginRoute); } }