Don't show the LDAP authentication method in the login page if this feature isn't enabled

This commit is contained in:
Khanh Ngo
2016-04-13 11:33:07 +07:00
parent 53b4fe2f8b
commit 8f8b26266b
2 changed files with 4 additions and 1 deletions

View File

@ -75,7 +75,9 @@
<div class="form-group">
<select class="form-control" name="auth_method">
<option value="LOCAL">Default Authentication</option>
{% if ldap_enabled %}
<option value="LDAP">LDAP Authentication</option>
{% endif %}
</select>
</div>
<div class="form-actions">