From 8db59825f11e567664310988138b47f5da671903 Mon Sep 17 00:00:00 2001 From: David Ormsbee Date: Mon, 23 Jul 2012 22:27:33 -0400 Subject: [PATCH] Bad hardcoded hack fix to password reset. We used to use Django templates and the Sites framework. At some point we stopped, but this was leftover. The site_name no longer gets set properly. It's probably a config issue, but not one I want to deal with right before release, so I'm hardcoding it to link to the prod edx.org site until we can sort what's what in the morning. --- lms/templates/registration/password_reset_email.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lms/templates/registration/password_reset_email.html b/lms/templates/registration/password_reset_email.html index d5c4da23c1..dba3879281 100644 --- a/lms/templates/registration/password_reset_email.html +++ b/lms/templates/registration/password_reset_email.html @@ -1,14 +1,14 @@ {% load i18n %}{% load url from future %}{% autoescape off %} -{% blocktrans %}You're receiving this e-mail because you requested a password reset for your user account at {{ site_name }}.{% endblocktrans %} +{% blocktrans %}You're receiving this e-mail because you requested a password reset for your user account at edx.org.{% endblocktrans %} {% trans "Please go to the following page and choose a new password:" %} {% block reset_link %} -{{ protocol }}://{{ site_name }}{% url 'django.contrib.auth.views.password_reset_confirm' uidb36=uid token=token %} +https://www.edx.org{% url 'django.contrib.auth.views.password_reset_confirm' uidb36=uid token=token %} {% endblock %} {% trans "Your username, in case you've forgotten:" %} {{ user.username }} {% trans "Thanks for using our site!" %} -{% blocktrans %}The MITx team{% endblocktrans %} +{% blocktrans %}The edX Team{% endblocktrans %} {% endautoescape %}