fix: show user/pass fields when LDAP is active (#18043)

This commit is contained in:
Ankush Menat 2022-09-06 14:03:52 +05:30 committed by GitHub
parent 89b2e5133f
commit 5699eadcad
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,7 +1,7 @@
{% extends "templates/web.html" %}
{% macro email_login_body() -%}
{% if not disable_user_pass_login %}
{% if not disable_user_pass_login or (ldap_settings and ldap_settings.enabled) %}
<div class="page-card-body">
<div class="form-group">
<label class="form-label sr-only" for="login_email">{{ login_label or _("Email")}}</label>