diff --git a/common/djangoapps/student/forms.py b/common/djangoapps/student/forms.py index 4d96fdabb6..80c49c6c42 100644 --- a/common/djangoapps/student/forms.py +++ b/common/djangoapps/student/forms.py @@ -49,7 +49,7 @@ def send_password_reset_email_for_user(user, request, preferred_email=None): 'request': request, # Used by google_analytics_tracking_pixel # TODO: This overrides `platform_name` from `get_base_template_context` to make the tests passes 'platform_name': configuration_helpers.get_value('PLATFORM_NAME', settings.PLATFORM_NAME), - 'reset_link': '{protocol}://{site}{link}'.format( + 'reset_link': '{protocol}://{site}{link}?track=pwreset'.format( protocol='https' if request.is_secure() else 'http', site=configuration_helpers.get_value('SITE_NAME', settings.SITE_NAME), link=reverse('password_reset_confirm', kwargs={ diff --git a/common/templates/student/edx_ace/passwordreset/email/body.html b/common/templates/student/edx_ace/passwordreset/email/body.html index 4236456da5..8cf177aa68 100644 --- a/common/templates/student/edx_ace/passwordreset/email/body.html +++ b/common/templates/student/edx_ace/passwordreset/email/body.html @@ -36,7 +36,23 @@ ## xss-lint: disable=django-trans-missing-escape {% trans "Change my Password" as course_cta_text %} - {% include "ace_common/edx_ace/common/return_to_course_cta.html" with course_cta_text=course_cta_text course_cta_url=reset_link %} + {# email client support for style sheets is pretty spotty, so we have to inline all of these styles #} + + {# old email clients require the use of the font tag :( #} + {{ course_cta_text }} + {% endif %}