fix method name to actually make sense

This commit is contained in:
Chris Dodge
2014-02-27 13:56:58 -05:00
parent 9431318467
commit 46fa943fc2
2 changed files with 2 additions and 2 deletions

View File

@@ -1347,7 +1347,7 @@ def password_reset(request):
# Add some rate limiting here by re-using the RateLimitMixin as a helper class
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")
return HttpResponseForbidden()

View File

@@ -9,7 +9,7 @@ class BadRequestRateLimiter(RateLimitMixin):
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
"""