Fix reference to incorrect array part in MD_STD_SEC's brute force

protection
This commit is contained in:
Joshua Ramon Enslin 2020-11-22 14:18:08 +01:00
parent dc9d7abe14
commit 258781307d
Signed by: jrenslin
GPG Key ID: 46016F84501B70AE

View File

@ -102,7 +102,7 @@ final class MD_STD_SEC {
// Translate counters into delay multipliers
$delay_multiplier_common = $loginLog['common']['count'];
$delay_multiplier_per_user = $loginLog['usr'][$hash_user]['count'];
$delay_multiplier_per_ip = $loginLog['usr'][$hash_ip]['count'];
$delay_multiplier_per_ip = $loginLog['ip'][$hash_ip]['count'];
// Calculate delay
$delay_micoseconds = \intval(self::BRUTE_FORCE_DELAY_DEFAULT *