mirror of https://github.com/zulip/zulip.git
auth: Replace deprecated password_reset_complete.
This commit is contained in:
parent
65b41210a8
commit
01874490f5
|
@ -13,7 +13,7 @@ from zerver.lib.integrations import WEBHOOK_INTEGRATIONS
|
||||||
|
|
||||||
|
|
||||||
from django.contrib.auth.views import (LoginView, PasswordResetDoneView,
|
from django.contrib.auth.views import (LoginView, PasswordResetDoneView,
|
||||||
PasswordResetConfirmView, password_reset_complete)
|
PasswordResetConfirmView, PasswordResetCompleteView)
|
||||||
|
|
||||||
import zerver.tornado.views
|
import zerver.tornado.views
|
||||||
import zerver.views
|
import zerver.views
|
||||||
|
@ -463,8 +463,8 @@ i18n_urls = [
|
||||||
template_name='zerver/reset_confirm.html',
|
template_name='zerver/reset_confirm.html',
|
||||||
form_class=zerver.forms.LoggingSetPasswordForm),
|
form_class=zerver.forms.LoggingSetPasswordForm),
|
||||||
name='django.contrib.auth.views.password_reset_confirm'),
|
name='django.contrib.auth.views.password_reset_confirm'),
|
||||||
url(r'^accounts/password/done/$', password_reset_complete,
|
url(r'^accounts/password/done/$',
|
||||||
{'template_name': 'zerver/reset_done.html'}),
|
PasswordResetCompleteView.as_view(template_name='zerver/reset_done.html')),
|
||||||
url(r'^accounts/deactivated/$',
|
url(r'^accounts/deactivated/$',
|
||||||
zerver.views.auth.show_deactivation_notice,
|
zerver.views.auth.show_deactivation_notice,
|
||||||
name='zerver.views.auth.show_deactivation_notice'),
|
name='zerver.views.auth.show_deactivation_notice'),
|
||||||
|
|
Loading…
Reference in New Issue