Merge pull request #41810 from nextcloud/bugfix/stable23/throttle-share-link

pull/42192/head
Julius Härtl 6 months ago committed by GitHub
commit 66fe5f98a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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…
Cancel
Save