fix:ldap check prevent for login screen

This commit is contained in:
vishal 2020-01-10 12:29:14 +05:30
parent 2f0ea26512
commit e7e155ee58

View file

@ -66,7 +66,7 @@ login.bind_events = function() {
}
});
{% if ldap_settings.enabled %}
{% if ldap_settings and ldap_settings.enabled %}
$(".btn-ldap-login").on("click", function(){
var args = {};
args.cmd = "{{ ldap_settings.method }}";