diff --git a/demo/demodesk/config/settings.py b/demo/demodesk/config/settings.py index 256f1f15..2fb335c8 100644 --- a/demo/demodesk/config/settings.py +++ b/demo/demodesk/config/settings.py @@ -98,6 +98,9 @@ HELPDESK_SUBMIT_A_TICKET_PUBLIC = True # Should the Knowledgebase be enabled? HELPDESK_KB_ENABLED = True +# Allow users to change their passwords +HELPDESK_SHOW_CHANGE_PASSWORD = True + # Instead of showing the public web portal first, # we can instead redirect users straight to the login page. HELPDESK_REDIRECT_TO_LOGIN_BY_DEFAULT = False diff --git a/helpdesk/templates/helpdesk/navigation.html b/helpdesk/templates/helpdesk/navigation.html index 0121c4fb..f4311844 100644 --- a/helpdesk/templates/helpdesk/navigation.html +++ b/helpdesk/templates/helpdesk/navigation.html @@ -72,7 +72,7 @@
{% trans 'Your password was changed.' %}
+ +{% endblock helpdesk_body %} diff --git a/helpdesk/urls.py b/helpdesk/urls.py index c6c7379f..0dae640a 100644 --- a/helpdesk/urls.py +++ b/helpdesk/urls.py @@ -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: