Example #1
0
 /**
  * @param AuthenticateUserEvent $event
  * @throws UserException
  */
 public function checkLogin(AuthenticateUserEvent $event)
 {
     $data = $event->getAuthenticationData();
     $userVo = $data->userVo;
     if (!empty($userVo->one_time_secret)) {
         $this->otp->verifyOneTimePassword($userVo, $data->oneTimeToken);
     }
 }