From 586f275c91be152684921ffc7c634e278dddcdaa Mon Sep 17 00:00:00 2001 From: Nathan Coad Date: Mon, 8 Jan 2024 15:06:29 +1100 Subject: [PATCH] debug --- models/user.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/models/user.go b/models/user.go index b96f491..9cc5cca 100644 --- a/models/user.go +++ b/models/user.go @@ -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)