Skip to content

Commit

Permalink
Revert "wrong sql without group by"
Browse files Browse the repository at this point in the history
0c34 authored Nov 19, 2020
1 parent 2ba1f6e commit 1fcb963
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config/config.json
Original file line number Diff line number Diff line change
@@ -7,5 +7,5 @@
"webserver": "http://localhost",
"webport": "8888",

"sessionkey": "G0Vw444"
"sessionkey:": "G0Vw444"
}
2 changes: 1 addition & 1 deletion user/user.go
Original file line number Diff line number Diff line change
@@ -144,7 +144,7 @@ func checkUserQuery(username, pass string) *UserData {
sql = `SELECT id, uname, COUNT(*) as cnt
FROM Users
WHERE uname=?
AND pass=? group by id, uname`)
AND pass=?`)

stmt, err := db.Prepare(sql)
if err != nil {

0 comments on commit 1fcb963

Please sign in to comment.