コード例 #1
0
 /**
  * Checks whether the current user is authenticated and redirects to the
  * login form if necessary.
  *
  * @return void
  */
 protected function checkAuthentication()
 {
     if ($this->isAuthenticationRequired() && !UserService::isAuthenticated(Application::getUser())) {
         $this->redirectTo($this->getAuthenticationLoginUrl());
     }
 }
コード例 #2
0
ファイル: LoginPage.php プロジェクト: ableron/ableron-core
 /**
  * @see \Ableron\Core\Controller\AbstractController::checkAuthentication()
  */
 protected function checkAuthentication()
 {
     if (UserService::isAuthenticated(Application::getUser())) {
         $this->redirectTo(EnvironmentUtil::getInternalUrl('/'));
     }
 }