Better exception handling

This commit is contained in:
Lance Pioch
2024-06-05 21:49:09 -04:00
parent 6f009ee126
commit df26c4f9f5
3 changed files with 33 additions and 3 deletions

View File

@@ -6,9 +6,9 @@ use App\Exceptions\DisplayException;
class TwoFactorAuthenticationTokenInvalid extends DisplayException
{
/**
* TwoFactorAuthenticationTokenInvalid constructor.
*/
public string $title = 'Invalid 2FA Code';
public string $icon = 'tabler-2fa';
public function __construct()
{
parent::__construct('The provided two-factor authentication token was not valid.');