Added points to the users table

This commit is contained in:
chopster44 committed 2023-07-21 22:33:14 +01:00
1 parent 20da46a8d7
commit fa8e4486f3
2 files changed
+1 -1

No files matched your search

BIN
View File
Binary file not shown.
+1 -1
View File
@@ -65,7 +65,7 @@ func login(c *gin.Context) {
checkErr(err) checkErr(err)
defer stmt.Close() defer stmt.Close()
var user loginOutput var user loginOutput
err = stmt.QueryRow(userData.Name).Scan(&user.UID, &user.Name, &user.Password, &user.Role) err = stmt.QueryRow(userData.Name).Scan(&user.UID, &user.Name, &user.Password, &user.Role, &user.Points)
if err != nil { if err != nil {
// search failed user not real // search failed user not real
c.IndentedJSON(http.StatusNotFound, userData) c.IndentedJSON(http.StatusNotFound, userData)