diff --git a/core/bootstrap.php b/core/bootstrap.php index f37c0f3..1d9222a 100644 --- a/core/bootstrap.php +++ b/core/bootstrap.php @@ -138,7 +138,7 @@ User::logout(); } - $ddosProtectObject = new DDosProtection('bootstrap'); + $ddosProtectObject = new DDosProtection(basename(__FILE__)); try { $userId = User::getCurrentUserId(); } catch (CoreException $e) { @@ -146,8 +146,8 @@ } if (!empty($userId)) { try { - $ddosProtectObject->setUserId($userId); $USER = new User($userId); + $ddosProtectObject->setUserId($userId); } catch (CoreException $e) { $USER = null; } diff --git a/core/lib/Core/Helpers/DDosProtection.class.php b/core/lib/Core/Helpers/DDosProtection.class.php index 1e3c914..5ac6d07 100644 --- a/core/lib/Core/Helpers/DDosProtection.class.php +++ b/core/lib/Core/Helpers/DDosProtection.class.php @@ -38,9 +38,9 @@ private ?string $observedKey = null; - private int $maxAttempts = 5; + private int $maxAttempts = 10; - private int $timeInterval = 20; + private int $timeInterval = 10; public function __construct(?string $place = null)