mirror of
https://github.com/nextcloud/server.git
synced 2026-06-09 08:44:07 -04:00
fix: Only throttle on invalid requests for public share links
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
parent
9c937a311d
commit
9642615f52
1 changed files with 2 additions and 1 deletions
|
|
@ -77,6 +77,8 @@ class PublicShareMiddleware extends Middleware {
|
|||
$controller->setToken($token);
|
||||
|
||||
if (!$controller->isValidToken()) {
|
||||
$this->throttle($bruteforceProtectionAction, $token);
|
||||
|
||||
$controller->shareNotFound();
|
||||
throw new NotFoundException();
|
||||
}
|
||||
|
|
@ -88,7 +90,6 @@ class PublicShareMiddleware extends Middleware {
|
|||
|
||||
// If authentication succeeds just continue
|
||||
if ($controller->isAuthenticated()) {
|
||||
$this->throttle($bruteforceProtectionAction, $token);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue