diff --git a/config/config.json b/config/config.json index 850b32b7..8ec621d8 100644 --- a/config/config.json +++ b/config/config.json @@ -7,5 +7,5 @@ "webserver": "http://localhost", "webport": "8888", - "sessionkey": "G0Vw444" + "sessionkey:": "G0Vw444" } \ No newline at end of file diff --git a/user/user.go b/user/user.go index 29296a4e..c13debd0 100644 --- a/user/user.go +++ b/user/user.go @@ -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 {