MyShaarli/application/front/exceptions/LoginBannedException.php
2020-01-26 11:34:14 +01:00

16 lines
317 B
PHP

<?php
declare(strict_types=1);
namespace Shaarli\Front\Exception;
class LoginBannedException extends ShaarliException
{
public function __construct()
{
$message = t('You have been banned after too many failed login attempts. Try again later.');
parent::__construct($message, 401);
}
}