Neos\Flow\Security\Authentication\AuthenticationManagerInterface::authenticate PHP Метод

authenticate() публичный Метод

(Have a look at the Authentication\TokenManager for an implementation example)
public authenticate ( ) : void
Результат void
    public function authenticate();

Usage Example

Пример #1
0
 /**
  * @param integer $step The requested setup step
  * @return void
  * @Flow\SkipCsrfProtection
  */
 public function authenticateAction($step)
 {
     try {
         $this->authenticationManager->authenticate();
         if (file_exists($this->settings['initialPasswordFile'])) {
             unlink($this->settings['initialPasswordFile']);
         }
         $this->redirect('index', 'Setup', null, ['step' => $step]);
     } catch (\Neos\Flow\Security\Exception\AuthenticationRequiredException $exception) {
         $this->addFlashMessage('Sorry, you were not able to authenticate.', 'Authentication error', Message::SEVERITY_ERROR);
         $this->redirect('login', null, null, ['step' => $step]);
     }
 }
All Usage Examples Of Neos\Flow\Security\Authentication\AuthenticationManagerInterface::authenticate