Files
pterodactyl-panel/app/Exceptions/Http/TwoFactorAuthRequiredException.php
T

22 lines
595 B
PHP
Raw Normal View History

<?php
2026-10-05 18:10:18 -04:00
declare(strict_types=1);
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;
class TwoFactorAuthRequiredException extends HttpException implements HttpExceptionInterface
{
/**
* TwoFactorAuthRequiredException constructor.
*/
2026-10-05 18:10:18 -04:00
public function __construct(?Throwable $previous = null)
{
2026-11-23 14:51:03 +00:00
parent::__construct(Response::HTTP_BAD_REQUEST, __('exceptions.account.two_factor_required'), $previous);
}
}