fix method name to actually make sense
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
@@ -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
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user