Added points to the users table

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

Binary file not shown.

View File

@@ -65,7 +65,7 @@ func login(c *gin.Context) {
checkErr(err)
defer stmt.Close()
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 {
// search failed user not real
c.IndentedJSON(http.StatusNotFound, userData)