fix missing bracket
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-01-08 15:12:25 +11:00
parent 586f275c91
commit 0c232178db

View File

@@ -52,7 +52,8 @@ func (u *User) SaveUser() (*User, error) {
_, err = UserGetByName(u.UserName)
if err != nil && err.Error() == "user not found" {
log.Printf("SaveUser confirmed no existing user, continuing with creation of user '%s'\n", u.UserName)
result, err := db.NamedExec((`INSERT INTO users (GroupId, UserName, Password, LdapUser) VALUES (:GroupId, :UserName, :Password, :LdapUser`), u)
//log.Printf("u: %v\n", u)
result, err := db.NamedExec((`INSERT INTO users (GroupId, UserName, Password, LdapUser, Admin) VALUES (:GroupId, :UserName, :Password, :LdapUser, :Admin)`), u)
if err != nil {
log.Printf("SaveUser error executing sql record : '%s'\n", err)