Commit 46fa943f by Chris Dodge

fix method name to actually make sense

parent 94313184
...@@ -1347,7 +1347,7 @@ def password_reset(request): ...@@ -1347,7 +1347,7 @@ def password_reset(request):
# Add some rate limiting here by re-using the RateLimitMixin as a helper class # Add some rate limiting here by re-using the RateLimitMixin as a helper class
limiter = BadRequestRateLimiter() limiter = BadRequestRateLimiter()
if limiter.is_rated_limit_exceeded(request): if limiter.is_rate_limit_exceeded(request):
AUDIT_LOG.warning("Rate limit exceeded in password_reset") AUDIT_LOG.warning("Rate limit exceeded in password_reset")
return HttpResponseForbidden() return HttpResponseForbidden()
......
...@@ -9,7 +9,7 @@ class BadRequestRateLimiter(RateLimitMixin): ...@@ -9,7 +9,7 @@ class BadRequestRateLimiter(RateLimitMixin):
Use the 3rd party RateLimitMixin to help do rate limiting on the Password Reset flows Use the 3rd party RateLimitMixin to help do rate limiting on the Password Reset flows
""" """
def is_rated_limit_exceeded(self, request): def is_rate_limit_exceeded(self, request):
""" """
Returns if the client has been rated limited Returns if the client has been rated limited
""" """
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment