Fixed docker errors and improved error logging..

This commit is contained in:
Hosteroid
2025-10-29 12:45:01 +02:00
parent 0e08e807d3
commit a0ada0b2c2
4 changed files with 23 additions and 2 deletions

View File

@@ -479,7 +479,7 @@ class TldRegistryService
/**
* Get count of TLDs that need WHOIS data
*/
public function getTldsNeedingWhoisCount(int $logId = null): int
public function getTldsNeedingWhoisCount(?int $logId = null): int
{
if ($logId) {
// For a specific import session, count TLDs that haven't been processed yet

View File

@@ -278,7 +278,7 @@ class TwoFactorService
/**
* Check rate limiting for 2FA attempts
*/
public function checkRateLimit(string $ipAddress, int $userId = null): bool
public function checkRateLimit(string $ipAddress, ?int $userId = null): bool
{
$rateLimitMinutes = (int)$this->settingModel->getValue('two_factor_rate_limit_minutes', 15);
$since = date('Y-m-d H:i:s', time() - ($rateLimitMinutes * 60));