mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2025-12-15 03:36:16 +01:00
return directly on error
This commit is contained in:
@@ -71,6 +71,7 @@ func (la *LdapAuthenticator) CanLogin(
|
|||||||
l, err := la.getLdapConnection(true)
|
l, err := la.getLdapConnection(true)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
cclog.Error("LDAP connection error")
|
cclog.Error("LDAP connection error")
|
||||||
|
return nil, false
|
||||||
}
|
}
|
||||||
defer l.Close()
|
defer l.Close()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user