diff --git a/services/web/app/coffee/Features/PasswordReset/PasswordResetController.coffee b/services/web/app/coffee/Features/PasswordReset/PasswordResetController.coffee index 8b1a7b6e2c..721569a857 100644 --- a/services/web/app/coffee/Features/PasswordReset/PasswordResetController.coffee +++ b/services/web/app/coffee/Features/PasswordReset/PasswordResetController.coffee @@ -15,8 +15,8 @@ module.exports = timeInterval: 60 subjectName: req.ip throttle: 6 - RateLimiter.addCount opts, (err, canCompile)-> - if !canCompile + RateLimiter.addCount opts, (err, canContinue)-> + if !canContinue return res.send 500, { message: req.i18n.translate("rate_limit_hit_wait")} PasswordResetHandler.generateAndEmailResetToken email, (err, exists)-> if err?