mirror of
https://github.com/pterodactyl/panel.git
synced 2026-12-02 04:15:52 -05:00
22 lines
595 B
PHP
22 lines
595 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Pterodactyl\Exceptions\Http;
|
|
|
|
use Illuminate\Http\Response;
|
|
use Symfony\Component\HttpKernel\Exception\HttpException;
|
|
use Symfony\Component\HttpKernel\Exception\HttpExceptionInterface;
|
|
use Throwable;
|
|
|
|
class TwoFactorAuthRequiredException extends HttpException implements HttpExceptionInterface
|
|
{
|
|
/**
|
|
* TwoFactorAuthRequiredException constructor.
|
|
*/
|
|
public function __construct(?Throwable $previous = null)
|
|
{
|
|
parent::__construct(Response::HTTP_BAD_REQUEST, __('exceptions.account.two_factor_required'), $previous);
|
|
}
|
|
}
|