Skip to content

Conversation

@nickvergessen
Copy link
Member

Backport of #39870
Backport of #39996

'cronInfo' => $this->getLastCronInfo(),
'cronErrors' => $this->getCronErrors(),
'isFairUseOfFreePushService' => $this->isFairUseOfFreePushService(),
'isBruteforceThrottled' => $this->throttler->getAttempts($this->request->getRemoteAddress()) !== 0,

Check notice

Code scanning / Psalm

DeprecatedMethod

The method OCP\Security\Bruteforce\IThrottler::getAttempts has been marked as deprecated
Similar to the ratelimit backend

Signed-off-by: Joas Schilling <[email protected]>
Calling setHeaders(getHeaders()) breaks the CSP nonce for unknown reasons
So shifting back to old standard practise for now

Signed-off-by: Joas Schilling <[email protected]>
@nickvergessen nickvergessen force-pushed the backport/39870/stable27 branch from a796887 to 26832ec Compare August 23, 2023 04:44
@nickvergessen nickvergessen merged commit d12b56b into stable27 Aug 23, 2023
@nickvergessen nickvergessen deleted the backport/39870/stable27 branch August 23, 2023 06:43
@skjnldsv skjnldsv mentioned this pull request Aug 24, 2023
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants