email: Move and rename password reset templates.

This commit is contained in:
Rishi Gupta 2017-05-01 15:05:52 -07:00 committed by Tim Abbott
parent c10d3114eb
commit 92dd76822f
4 changed files with 4 additions and 3 deletions

View File

@ -45,8 +45,8 @@ class Command(BaseCommand):
self.send(users)
def send(self, users,
subject_template_name='registration/password_reset_subject.txt',
email_template_name='registration/password_reset_email.txt',
subject_template_name='zerver/emails/password_reset.subject',
email_template_name='zerver/emails/password_reset.txt',
use_https=True, token_generator=default_token_generator,
from_email=None, html_email_template_name=None):
# type: (List[UserProfile], str, str, bool, PasswordResetTokenGenerator, Optional[Text], Optional[str]) -> None

View File

@ -80,7 +80,8 @@ i18n_urls = [
url(r'^accounts/password/reset/$', password_reset,
{'post_reset_redirect': '/accounts/password/reset/done/',
'template_name': 'zerver/reset.html',
'email_template_name': 'registration/password_reset_email.txt',
'email_template_name': 'zerver/emails/password_reset.txt',
'subject_template_name': 'zerver/emails/password_reset.subject',
'password_reset_form': zerver.forms.ZulipPasswordResetForm,
}, name='django.contrib.auth.views.password_reset'),
url(r'^accounts/password/reset/done/$', password_reset_done,