Update base.html

Update base.html to account for other cases where passwords are not used, other than LDAP. (SSO solutions, for example.)
This commit is contained in:
Amir-Bakar 2025-10-07 09:55:49 +02:00 committed by Jeremy Stretch
parent f8c074045f
commit 2abc5ac69a

View File

@ -18,7 +18,7 @@
<li class="nav-item">
<a class="nav-link{% if active_tab == 'preferences' %} active{% endif %}" href="{% url 'account:preferences' %}">{% trans "Preferences" %}</a>
</li>
{% if not request.user.ldap_username %}
{% if request.user.has_usable_password %}
<li class="nav-item">
<a class="nav-link{% if active_tab == 'password' %} active{% endif %}" href="{% url 'account:change_password' %}">{% trans "Password" %}</a>
</li>