mirror of https://github.com/zulip/zulip.git
email: Move and rename password reset templates.
This commit is contained in:
parent
c10d3114eb
commit
92dd76822f
|
@ -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
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue