debug
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-01-08 15:06:29 +11:00
parent fe502e150f
commit 586f275c91

View File

@@ -144,6 +144,10 @@ func LoginCheck(username string, password string) (string, error) {
// LDAP is not enabled, if user is not in the database then they can't login
return "", errors.New("specified user not found in database")
}
} else {
errString := fmt.Sprintf("LoginCheck error querying database : '%s'\n", err)
log.Print(errString)
return "", errors.New(errString)
}
} else {
log.Printf("LoginCheck retrieved user '%v' from database\n", u)