Exemplo n.º 1
0
 /**
  * @param string $emailVerificationToken
  *
  * @return ApiResponse
  *
  * @throws BadRequestHttpException on invalid email verification token
  */
 public function verifyEmail($emailVerificationToken)
 {
     $success = $this->api->verifyEmail($emailVerificationToken);
     if (!$success) {
         throw new BadRequestHttpException('Invalid email verification token.');
     }
     return new ApiResponse(true);
 }