mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Merge pull request #33158 from nextcloud/backport/33153/stable23
This commit is contained in:
commit
b93bde1c76
1 changed files with 4 additions and 4 deletions
|
|
@ -66,8 +66,8 @@ class Throttler {
|
|||
private $logger;
|
||||
/** @var IConfig */
|
||||
private $config;
|
||||
/** @var bool */
|
||||
private $hasAttemptsDeleted = false;
|
||||
/** @var bool[] */
|
||||
private $hasAttemptsDeleted = [];
|
||||
|
||||
/**
|
||||
* @param IDBConnection $db
|
||||
|
|
@ -232,7 +232,7 @@ class Throttler {
|
|||
$maxAgeHours = 48;
|
||||
}
|
||||
|
||||
if ($ip === '' || $this->hasAttemptsDeleted) {
|
||||
if ($ip === '' || isset($this->hasAttemptsDeleted[$action])) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
@ -310,7 +310,7 @@ class Throttler {
|
|||
|
||||
$qb->executeStatement();
|
||||
|
||||
$this->hasAttemptsDeleted = true;
|
||||
$this->hasAttemptsDeleted[$action] = true;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue