Merge pull request #19090 from edx/ddumesnil/password-reset-fix

Fixing location of automatic password reset email message
This commit is contained in:
Dillon-Dumesnil
2018-10-11 12:56:48 -04:00
committed by GitHub

View File

@@ -72,8 +72,8 @@ def enforce_compliance_on_login(user, password):
raise NonCompliantPasswordException(
_capitalize_first(_(
'{platform_name} now requires more complex passwords. Your current password does not meet the new '
'requirements. Change your password now using the "Forgot password?" link below to continue using the '
'site. Thank you for helping us keep your data safe.'
'requirements. A password reset e-mail has been sent to the address associated with this account.'
'Thank you for helping us keep your data safe.'
).format(
platform_name=settings.PLATFORM_NAME
))
@@ -83,7 +83,8 @@ def enforce_compliance_on_login(user, password):
_capitalize_first(_(
'{platform_name} now requires more complex passwords. Your current password does not meet the new '
'requirements. You must change your password by {deadline} to be able to continue using the site. '
'A password reset e-mail has been sent to the address associated with this account.'
'To change your password, select the dropdown menu icon next to your username, then select "Account". '
'You can reset your password from this page. Thank you for helping us keep your data safe.'
).format(
platform_name=settings.PLATFORM_NAME,
deadline=strftime_localized(deadline, DEFAULT_SHORT_DATE_FORMAT)