Merge pull request #22190 from edx/adeel/prod_834_html_not_formatted

Fix escaping of html tags.
This commit is contained in:
adeel khan
2019-10-31 15:49:41 +05:00
committed by GitHub

View File

@@ -115,7 +115,7 @@ def _enforce_password_policy_compliance(request, user):
except password_policy_compliance.NonCompliantPasswordException as e:
send_password_reset_email_for_user(user, request)
# Prevent the login attempt.
raise AuthFailedError(six.text_type(e))
raise AuthFailedError(HTML(six.text_type(e)))
def _generate_not_activated_message(user):