diff options
author | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2011-04-11 18:21:45 -0400 |
---|---|---|
committer | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2011-04-11 18:21:45 -0400 |
commit | 1416064724824d813eec860ab32c677a3e872bdf (patch) | |
tree | 2a943dfd71e74293b055adc1934e24d1af13bafa | |
parent | 22676d0ce5def23877510340d00d4ff542ddf92d (diff) | |
download | askbot-1416064724824d813eec860ab32c677a3e872bdf.tar.gz askbot-1416064724824d813eec860ab32c677a3e872bdf.tar.bz2 askbot-1416064724824d813eec860ab32c677a3e872bdf.zip |
fixed a bug on account recovery by email
-rw-r--r-- | askbot/deps/django_authopenid/views.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/askbot/deps/django_authopenid/views.py b/askbot/deps/django_authopenid/views.py index 75d6986e..fd0308e7 100644 --- a/askbot/deps/django_authopenid/views.py +++ b/askbot/deps/django_authopenid/views.py @@ -45,7 +45,7 @@ from django.utils.html import escape from django.utils.translation import ugettext as _ from django.utils.safestring import mark_safe from django.core.mail import send_mail -from askbot.skins.loaders import render_into_skin +from askbot.skins.loaders import render_into_skin, get_template from askbot.deps.openid.consumer.consumer import Consumer, \ SUCCESS, CANCEL, FAILURE, SETUP_NEEDED @@ -1008,7 +1008,8 @@ def _send_email_key(user): kwargs={'key':user.email_key} ) } - message = render_into_skin('authopenid/email_validation.txt', data) + template = get_template('authopenid/email_validation.txt') + message = template.render(data) send_mail(subject, message, settings.DEFAULT_FROM_EMAIL, [user.email]) def send_new_email_key(user,nomessage=False): |