{% from 'macros.html' import render_form, render_field %} {% if config.get('AUTH_LOCAL_ENABLE') %} {% else %}

 LDAP Login

{% call render_form(form, action_url=url_for('auth.ldap.login'), action_text='Login', btn_class='btn btn-primary') %} {{ render_field(form.username, placeholder='Username', type='text', required=1) }} {{ render_field(form.password, placeholder='Password', type='password', required=1) }} {% endcall %} {% endif %}