Fix code smells
This commit is contained in:
@ -9,14 +9,14 @@ declare(strict_types = 1);
|
||||
*/
|
||||
final class MD_STD_SEC {
|
||||
|
||||
const REFRESH_TIME_GENERAL = 60; // Time until the comp. with the whole service is cleared.
|
||||
const REFRESH_TIME_USER = 600; // Time until the comp. with the same username service is cleared.
|
||||
const REFRESH_TIME_IP = 180; // Time until the comp. with the same IP is cleared. This should be lower than the user-level one, as people working together may be using a common IP.
|
||||
private const REFRESH_TIME_GENERAL = 60; // Time until the comp. with the whole service is cleared.
|
||||
private const REFRESH_TIME_USER = 600; // Time until the comp. with the same username service is cleared.
|
||||
private const REFRESH_TIME_IP = 180; // Time until the comp. with the same IP is cleared. This should be lower than the user-level one, as people working together may be using a common IP.
|
||||
|
||||
const BRUTE_FORCE_DELAY_DEFAULT = 2000; // 2000 microseconds = 2 milliseconds
|
||||
const BRUTE_FORCE_DELAY_MULTIPLIER_COMMON = 1.04;
|
||||
const BRUTE_FORCE_DELAY_MULTIPLIER_PER_USER = 2.0;
|
||||
const BRUTE_FORCE_DELAY_MULTIPLIER_PER_IP = 1.6;
|
||||
private const BRUTE_FORCE_DELAY_DEFAULT = 2000; // 2000 microseconds = 2 milliseconds
|
||||
private const BRUTE_FORCE_DELAY_MULTIPLIER_COMMON = 1.04;
|
||||
private const BRUTE_FORCE_DELAY_MULTIPLIER_PER_USER = 2.0;
|
||||
private const BRUTE_FORCE_DELAY_MULTIPLIER_PER_IP = 1.6;
|
||||
|
||||
/**
|
||||
* Function for retrieving the anti-csrf token or generating it if need be.
|
||||
|
Reference in New Issue
Block a user