We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent be4da74 commit bfad6f1Copy full SHA for bfad6f1
administrator/components/com_users/src/Model/CaptiveModel.php
@@ -426,7 +426,7 @@ public function checkTryLimit(MfaTable $method)
426
$maxTries = (int) $params->get('mfatrycount', 10);
427
$blockHours = (int) $params->get('mfatrytime', 1);
428
429
- $lastTryTime = strtotime($method->last_try) ?: 0;
+ $lastTryTime = $method->last_try !== null ? strtotime($method->last_try) : 0;
430
$hoursSinceLastTry = (strtotime(Factory::getDate()->toSql()) - $lastTryTime) / 3600;
431
432
if ($method->last_try !== null && $hoursSinceLastTry > $blockHours) {
0 commit comments