Skip to content
This repository has been archived by the owner on Oct 22, 2019. It is now read-only.

Commit

Permalink
Merge pull request #494 from datafyit/master
Browse files Browse the repository at this point in the history
Fix #493 - html email template should be also used for password reset
  • Loading branch information
swistakm committed Sep 15, 2015
2 parents 9b00a8e + 4490682 commit 26d2b0e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions userena/compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@
auth_views_compat_quirks['userena_password_reset_confirm'] = {
'post_reset_redirect': 'userena_password_reset_complete',
}
if django.VERSION >= (1, 7, 0):
# Django 1.7 added a new argument to django.contrib.auth.views.password_reset
# called html_email_template_name which allows us to pass it the html version
# of the email
auth_views_compat_quirks['html_email_template_name'] = 'userena/emails/password_reset_message.html'


# below are backward compatibility fixes
Expand Down

0 comments on commit 26d2b0e

Please sign in to comment.