[*] сходу скорректирована

This commit is contained in:
rsgrinko committed 2023-10-06 23:53:18 +03:00
1 parent 4b510c78e7
commit 8d64addc17
2 files changed
+4 -4

No files matched your search

+2 -2
View File
@@ -138,7 +138,7 @@
User::logout(); User::logout();
} }
$ddosProtectObject = new DDosProtection('bootstrap'); $ddosProtectObject = new DDosProtection(basename(__FILE__));
try { try {
$userId = User::getCurrentUserId(); $userId = User::getCurrentUserId();
} catch (CoreException $e) { } catch (CoreException $e) {
@@ -146,8 +146,8 @@
} }
if (!empty($userId)) { if (!empty($userId)) {
try { try {
$ddosProtectObject->setUserId($userId);
$USER = new User($userId); $USER = new User($userId);
$ddosProtectObject->setUserId($userId);
} catch (CoreException $e) { } catch (CoreException $e) {
$USER = null; $USER = null;
} }
@@ -38,9 +38,9 @@
private ?string $observedKey = null; 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) public function __construct(?string $place = null)