diff --git a/services/web/app/coffee/router.coffee b/services/web/app/coffee/router.coffee index fc9820dacf..2ebde53748 100644 --- a/services/web/app/coffee/router.coffee +++ b/services/web/app/coffee/router.coffee @@ -94,7 +94,14 @@ module.exports = class Router SudoModeMiddlewear.protectPage, UserPagesController.settingsPage webRouter.post '/user/settings', AuthenticationController.requireLogin(), UserController.updateUserSettings - webRouter.post '/user/password/update', AuthenticationController.requireLogin(), UserController.changePassword + webRouter.post '/user/password/update', + AuthenticationController.requireLogin(), + RateLimiterMiddlewear.rateLimit({ + endpointName: "change-password" + maxRequests: 10 + timeInterval: 60 + }), + UserController.changePassword webRouter.get '/user/sessions', AuthenticationController.requireLogin(),