2020-12-06 21:56:14 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Pterodactyl\Exceptions\Http;
|
|
|
|
|
|
|
|
use Illuminate\Http\Response;
|
|
|
|
use Symfony\Component\HttpKernel\Exception\HttpException;
|
|
|
|
use Symfony\Component\HttpKernel\Exception\HttpExceptionInterface;
|
|
|
|
|
|
|
|
class TwoFactorAuthRequiredException extends HttpException implements HttpExceptionInterface
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* TwoFactorAuthRequiredException constructor.
|
|
|
|
*/
|
2022-11-29 17:53:59 +00:00
|
|
|
public function __construct(\Throwable $previous = null)
|
2020-12-06 21:56:14 +00:00
|
|
|
{
|
2021-01-23 20:09:16 +00:00
|
|
|
parent::__construct(Response::HTTP_BAD_REQUEST, 'Two-factor authentication is required on this account in order to access this endpoint.', $previous);
|
2020-12-06 21:56:14 +00:00
|
|
|
}
|
|
|
|
}
|