mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-29 18:14:59 +00:00
apply rules rector up to php82
This commit is contained in:
@@ -18,28 +18,28 @@ use UnexpectedValueException;
|
||||
|
||||
class PasswordRecoverLocker
|
||||
{
|
||||
public const ASK_TOKEN_INVALID_FORM_TTL = 3600;
|
||||
final public const ASK_TOKEN_INVALID_FORM_TTL = 3600;
|
||||
|
||||
/**
|
||||
* TTL to keep invalid token recorded.
|
||||
*/
|
||||
public const INVALID_TOKEN_TTL = 3600;
|
||||
final public const INVALID_TOKEN_TTL = 3600;
|
||||
|
||||
public const MAX_ASK_TOKEN_BY_USER = 10;
|
||||
final public const MAX_ASK_TOKEN_BY_USER = 10;
|
||||
|
||||
public const MAX_ASK_TOKEN_INVALID_FORM_BY_IP = 10;
|
||||
final public const MAX_ASK_TOKEN_INVALID_FORM_BY_IP = 10;
|
||||
|
||||
public const MAX_ASK_TOKEN_INVALID_FORM_GLOBAL = 50;
|
||||
final public const MAX_ASK_TOKEN_INVALID_FORM_GLOBAL = 50;
|
||||
|
||||
/**
|
||||
* The maximum of invalid token by ip.
|
||||
*/
|
||||
public const MAX_INVALID_TOKEN_BY_IP = 10;
|
||||
final public const MAX_INVALID_TOKEN_BY_IP = 10;
|
||||
|
||||
/**
|
||||
* The maximum of invalid token globally (across all ip).
|
||||
*/
|
||||
public const MAX_INVALID_TOKEN_GLOBAL = 50;
|
||||
final public const MAX_INVALID_TOKEN_GLOBAL = 50;
|
||||
|
||||
/**
|
||||
* @var ChillRedis
|
||||
|
Reference in New Issue
Block a user