This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user