Fix store user query values

This commit is contained in:
Dan Shick 2020-08-17 18:22:57 -04:00 committed by Simon Ser
parent c654d2bac4
commit 54efb1cab4
No known key found for this signature in database
GPG Key ID: 0FDE7BE0E88F5E48

2
db.go
View File

@ -240,7 +240,7 @@ func (db *DB) StoreUser(user *User) error {
password, user.Admin, user.Username)
} else {
var res sql.Result
res, err = db.db.Exec("INSERT INTO User(username, password, admin) VALUES (?, ?, ?, ?)",
res, err = db.db.Exec("INSERT INTO User(username, password, admin) VALUES (?, ?, ?)",
user.Username, password, user.Admin)
if err != nil {
return err