Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
pterodactyl
GitHub Repository: pterodactyl/panel
Path: blob/1.0-develop/app/Exceptions/Http/TwoFactorAuthRequiredException.php
10279 views
1
<?php
2
3
namespace Pterodactyl\Exceptions\Http;
4
5
use Illuminate\Http\Response;
6
use Symfony\Component\HttpKernel\Exception\HttpException;
7
use Symfony\Component\HttpKernel\Exception\HttpExceptionInterface;
8
9
class TwoFactorAuthRequiredException extends HttpException implements HttpExceptionInterface
10
{
11
/**
12
* TwoFactorAuthRequiredException constructor.
13
*/
14
public function __construct(?\Throwable $previous = null)
15
{
16
parent::__construct(Response::HTTP_BAD_REQUEST, 'Two-factor authentication is required on this account in order to access this endpoint.', $previous);
17
}
18
}
19
20