debug
continuous-integration/drone/push Build is passing

This commit is contained in:
nathan committed 2024-01-08 15:06:29 +11:00
1 parent fe502e150f
commit 586f275c91
1 file changed
+4
+4
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 // 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") 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 { } else {
log.Printf("LoginCheck retrieved user '%v' from database\n", u) log.Printf("LoginCheck retrieved user '%v' from database\n", u)