Fix password change URLs and add basic templates, to address #734

This commit is contained in:
Garret Wassermann
2019-03-09 18:38:24 -05:00
parent 59e58c6d0e
commit d42fc23e08
5 changed files with 76 additions and 1 deletions

View File

@ -194,6 +194,17 @@ urlpatterns += [
template_name='helpdesk/registration/login.html',
next_page='../'),
name='logout'),
url(r'^password_change/$',
auth_views.PasswordChangeView.as_view(
template_name='helpdesk/registration/change_password.html',
success_url='./done'),
name='password_change'),
url(r'^password_change/done$',
auth_views.PasswordChangeDoneView.as_view(
template_name='helpdesk/registration/change_password_done.html',),
name='password_change_done'),
]
if helpdesk_settings.HELPDESK_KB_ENABLED: