diff --git a/helpdesk/settings.py b/helpdesk/settings.py index b0c9d825..7cd1765b 100644 --- a/helpdesk/settings.py +++ b/helpdesk/settings.py @@ -55,6 +55,9 @@ HELPDESK_TRANSLATE_TICKET_COMMENTS = getattr(settings, 'HELPDESK_TRANSLATE_TICKE # list of languages to offer. if set to false, all default google translate languages will be shown. HELPDESK_TRANSLATE_TICKET_COMMENTS_LANG = getattr(settings, 'HELPDESK_TRANSLATE_TICKET_COMMENTS_LANG', ["en", "de", "fr", "ru"]) +# show link to 'change password' on 'User Settings' page? +HELPDESK_SHOW_CHANGE_PASSWORD = getattr(settings, 'HELPDESK_SHOW_CHANGE_PASSWORD', False) + # allow user to override default layout for 'followups' - work in progress. HELPDESK_FOLLOWUP_MOD = getattr(settings, 'HELPDESK_FOLLOWUP_MOD', False) diff --git a/helpdesk/templates/helpdesk/user_settings.html b/helpdesk/templates/helpdesk/user_settings.html index 45cd659a..19cf72c4 100644 --- a/helpdesk/templates/helpdesk/user_settings.html +++ b/helpdesk/templates/helpdesk/user_settings.html @@ -2,10 +2,20 @@ {% block helpdesk_title %}{% trans "Change User Settings" %}{% endblock %} -{% block helpdesk_body %}{% blocktrans %} +{% block helpdesk_body %} +{% if show_password_change_link %} +{% url auth_password_change as password_change_url %} +
+Change your password here. +
+{% endif %} + +{% blocktrans %}Use the following options to change the way your helpdesk system works for you. These settings do not impact any other user.
{% endblocktrans %} +Use the following options to change the way your helpdesk system works for you. These settings do not impact any other user.
+{% endblocktrans %}