2020-01-18 17:50:11 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
|
|
namespace Shaarli\Front\Exception;
|
|
|
|
|
2020-05-22 13:20:31 +02:00
|
|
|
class LoginBannedException extends ShaarliFrontException
|
2020-01-18 17:50:11 +01:00
|
|
|
{
|
|
|
|
public function __construct()
|
|
|
|
{
|
|
|
|
$message = t('You have been banned after too many failed login attempts. Try again later.');
|
|
|
|
|
|
|
|
parent::__construct($message, 401);
|
|
|
|
}
|
|
|
|
}
|