aboutsummaryrefslogtreecommitdiffstats
path: root/core/Controller
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2017-04-24 10:03:19 +0200
committerGitHub <noreply@github.com>2017-04-24 10:03:19 +0200
commit8a1d3c7e877f143d211af259d08737c0d9aa8cfe (patch)
tree039ed6535e304e1a711cc401322a2fa7f1de25dd /core/Controller
parentd842b29c5b4074452433e81c2ceecb822a50364e (diff)
parentc1b8f152d8faeabe44c6276033c82d2c6453326d (diff)
downloadnextcloud-server-8a1d3c7e877f143d211af259d08737c0d9aa8cfe.tar.gz
nextcloud-server-8a1d3c7e877f143d211af259d08737c0d9aa8cfe.zip
Merge pull request #4434 from nextcloud/add-rate-limiting-to-solve-challenge-controller
Add rate limit to TOTP solve challenge controller
Diffstat (limited to 'core/Controller')
-rw-r--r--core/Controller/TwoFactorChallengeController.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/Controller/TwoFactorChallengeController.php b/core/Controller/TwoFactorChallengeController.php
index fd4811d3ff6..9f379ad30d7 100644
--- a/core/Controller/TwoFactorChallengeController.php
+++ b/core/Controller/TwoFactorChallengeController.php
@@ -143,6 +143,8 @@ class TwoFactorChallengeController extends Controller {
* @NoCSRFRequired
* @UseSession
*
+ * @UserRateThrottle(limit=5, period=100)
+ *
* @param string $challengeProviderId
* @param string $challenge
* @param string $redirect_url