diff --git a/common/djangoapps/student/views.py b/common/djangoapps/student/views.py index 0b061f5a94..9b96b90dee 100644 --- a/common/djangoapps/student/views.py +++ b/common/djangoapps/student/views.py @@ -1037,7 +1037,11 @@ def password_reset(request): 'error': _('Invalid e-mail or user')})) -def password_reset_confirm_wrapper(request, uidb36=None, token=None): +def password_reset_confirm_wrapper( + request, + uidb36=None, + token=None, +): ''' A wrapper around django.contrib.auth.views.password_reset_confirm. Needed because we want to set the user as active at this step. ''' @@ -1049,7 +1053,12 @@ def password_reset_confirm_wrapper(request, uidb36=None, token=None): user.save() except (ValueError, User.DoesNotExist): pass - return password_reset_confirm(request, uidb36=uidb36, token=token) + # we also want to pass settings.PLATFORM_NAME in as extra_context + + extra_context = {"platform_name": settings.PLATFORM_NAME} + return password_reset_confirm( + request, uidb36=uidb36, token=token, extra_context=extra_context + ) def reactivation_email_for_user(user): diff --git a/lms/templates/registration/password_reset_confirm.html b/lms/templates/registration/password_reset_confirm.html index afbaa22683..607ff1a077 100644 --- a/lms/templates/registration/password_reset_confirm.html +++ b/lms/templates/registration/password_reset_confirm.html @@ -5,7 +5,11 @@ -{% trans "Reset Your edX Password" %} + + {% blocktrans with platform_name=platform_name %} + Reset Your {{ platform_name }} Password + {% endblocktrans %} + {% compressed_css 'application' %} @@ -53,7 +57,11 @@
-

{% trans "Reset Your edX Password" %}

+

+ {% blocktrans with platform_name=platform_name %} + Reset Your {{ platform_name }} Password + {% endblocktrans %} +

@@ -66,7 +74,11 @@
{% csrf_token %}