mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2025-12-13 02:46: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)
|
||||
if err != nil {
|
||||
cclog.Error("LDAP connection error")
|
||||
return nil, false
|
||||
}
|
||||
defer l.Close()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user