Merge pull request #27292 from edx/add-separate-ratelimit-var

Add independent ratelimit setting for forms
This commit is contained in:
Uzair Rasheed
2021-04-10 14:46:53 +05:00
committed by GitHub
5 changed files with 7 additions and 1 deletions

View File

@@ -130,7 +130,7 @@ def get_login_session_form(request):
@require_http_methods(['GET'])
@ratelimit(
key='openedx.core.djangoapps.util.ratelimit.real_ip',
rate=settings.LOGISTRATION_RATELIMIT_RATE,
rate=settings.LOGIN_AND_REGISTER_FORM_RATELIMIT,
method='GET',
block=True
)