summaryrefslogtreecommitdiffstats
path: root/core/Controller/TwoFactorChallengeController.php
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2017-04-22 07:59:40 +0200
committerLukas Reschke <lukas@statuscode.ch>2017-04-22 07:59:40 +0200
commitc1b8f152d8faeabe44c6276033c82d2c6453326d (patch)
treed8c81c6f4212c32a4c23827b2aaec8b80bd96cea /core/Controller/TwoFactorChallengeController.php
parent363d1c69dda472c76cf258e1fcd77d5765671e2b (diff)
downloadnextcloud-server-c1b8f152d8faeabe44c6276033c82d2c6453326d.tar.gz
nextcloud-server-c1b8f152d8faeabe44c6276033c82d2c6453326d.zip
Add rate limit to TOTP solve challenge controller
Fixes https://github.com/nextcloud/server/issues/2626 Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
Diffstat (limited to 'core/Controller/TwoFactorChallengeController.php')
-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