Added points to the users table
This commit is contained in:
BIN
database/data.db
BIN
database/data.db
Binary file not shown.
2
main.go
2
main.go
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user