2020-12-06 13:56:14 -08:00
|
|
|
<?php
|
|
|
|
|
|
2026-10-05 18:10:18 -04:00
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
2020-12-06 13:56:14 -08:00
|
|
|
namespace Pterodactyl\Exceptions\Http;
|
|
|
|
|
|
|
|
|
|
use Illuminate\Http\Response;
|
|
|
|
|
use Symfony\Component\HttpKernel\Exception\HttpException;
|
|
|
|
|
use Symfony\Component\HttpKernel\Exception\HttpExceptionInterface;
|
2026-10-05 18:10:18 -04:00
|
|
|
use Throwable;
|
2020-12-06 13:56:14 -08:00
|
|
|
|
|
|
|
|
class TwoFactorAuthRequiredException extends HttpException implements HttpExceptionInterface
|
|
|
|
|
{
|
|
|
|
|
/**
|
|
|
|
|
* TwoFactorAuthRequiredException constructor.
|
|
|
|
|
*/
|
2026-10-05 18:10:18 -04:00
|
|
|
public function __construct(?Throwable $previous = null)
|
2020-12-06 13:56:14 -08:00
|
|
|
{
|
2026-11-23 14:51:03 +00:00
|
|
|
parent::__construct(Response::HTTP_BAD_REQUEST, __('exceptions.account.two_factor_required'), $previous);
|
2020-12-06 13:56:14 -08:00
|
|
|
}
|
|
|
|
|
}
|