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

22 lines
640 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)
{
2021-01-23 12:09:16 -08:00
parent::__construct(Response::HTTP_BAD_REQUEST, 'Two-factor authentication is required on this account in order to access this endpoint.', $previous);
}
}