chore: change ratelimit key for POST email param (#29638)

This commit is contained in:
Waheed Ahmed
2021-12-20 15:09:59 +05:00
committed by GitHub
parent a42c1aa8cb
commit a85880ce46
2 changed files with 2 additions and 2 deletions

View File

@@ -23,7 +23,7 @@ from lms.djangoapps.save_for_later.models import SavedCourse
log = logging.getLogger(__name__)
POST_EMAIL_KEY = 'post:email'
POST_EMAIL_KEY = 'openedx.core.djangoapps.util.ratelimit.request_post_email'
REAL_IP_KEY = 'openedx.core.djangoapps.util.ratelimit.real_ip'
USER_SENT_EMAIL_SAVE_FOR_LATER = 'edx.bi.user.save.for.later.email.sent'

View File

@@ -49,7 +49,7 @@ from common.djangoapps.student.models import AccountRecovery, LoginFailures
from common.djangoapps.util.json_request import JsonResponse
from common.djangoapps.util.password_policy_validators import normalize_password, validate_password
POST_EMAIL_KEY = 'post:email'
POST_EMAIL_KEY = 'openedx.core.djangoapps.util.ratelimit.request_post_email'
REAL_IP_KEY = 'openedx.core.djangoapps.util.ratelimit.real_ip'
SETTING_CHANGE_INITIATED = 'edx.user.settings.change_initiated'