Просмотр исходного кода

Update base.html

Update base.html to account for other cases where passwords are not used, other than LDAP. (SSO solutions, for example.)
Amir-Bakar 4 месяцев назад
Родитель
Сommit
2abc5ac69a
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      netbox/templates/account/base.html

+ 1 - 1
netbox/templates/account/base.html

@@ -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>