From 46fa943fc282ec98e33f0613d5952953f44dfb7a Mon Sep 17 00:00:00 2001 From: Chris Dodge Date: Thu, 27 Feb 2014 13:56:58 -0500 Subject: [PATCH] fix method name to actually make sense --- common/djangoapps/student/views.py | 2 +- common/djangoapps/util/bad_request_rate_limiter.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/common/djangoapps/student/views.py b/common/djangoapps/student/views.py index c685994cb8..eba1b82a0d 100644 --- a/common/djangoapps/student/views.py +++ b/common/djangoapps/student/views.py @@ -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() diff --git a/common/djangoapps/util/bad_request_rate_limiter.py b/common/djangoapps/util/bad_request_rate_limiter.py index fe596cc849..a8fb0f9180 100644 --- a/common/djangoapps/util/bad_request_rate_limiter.py +++ b/common/djangoapps/util/bad_request_rate_limiter.py @@ -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 """