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 """