Skip to content

Commit

Permalink
Merge pull request #41810 from nextcloud/bugfix/stable23/throttle-sha…
Browse files Browse the repository at this point in the history
…re-link
  • Loading branch information
juliusknorr authored Nov 29, 2023
2 parents 9c937a3 + 9642615 commit 66fe5f9
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ public function beforeController($controller, $methodName) {
$controller->setToken($token);

if (!$controller->isValidToken()) {
$this->throttle($bruteforceProtectionAction, $token);

$controller->shareNotFound();
throw new NotFoundException();
}
Expand All @@ -88,7 +90,6 @@ public function beforeController($controller, $methodName) {

// If authentication succeeds just continue
if ($controller->isAuthenticated()) {
$this->throttle($bruteforceProtectionAction, $token);
return;
}

Expand Down

0 comments on commit 66fe5f9

Please sign in to comment.