Beispiel #1
0
 /**
  * @param string $token
  * @return boolean
  */
 private function validateToken($token)
 {
     try {
         $token = $this->tokenProvider->validateToken($token);
         if (!is_null($token)) {
             $result = $this->loginWithToken($token->getUID());
             if ($result) {
                 // Login success
                 $this->updateToken($token);
                 return true;
             }
         }
     } catch (InvalidTokenException $ex) {
     }
     return false;
 }