Skip to content

Commit

Permalink
Fix out of date session in /savedata/system/verify
Browse files Browse the repository at this point in the history
  • Loading branch information
patapancakes committed Jun 10, 2024
1 parent 23c2458 commit b51f5cb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions api/endpoints.go
Original file line number Diff line number Diff line change
Expand Up @@ -545,6 +545,12 @@ func handleSystem(w http.ResponseWriter, r *http.Request) {
httpError(w, r, fmt.Errorf("failed to decode request body: %s", err), http.StatusBadRequest)
return
}

active, err = db.IsActiveSession(uuid, input.ClientSessionId)
if err != nil {
httpError(w, r, fmt.Errorf("failed to check active session: %s", err), http.StatusBadRequest)
return
}
} else {
active, err = db.IsActiveSession(uuid, r.URL.Query().Get("clientSessionId"))
if err != nil {
Expand Down

0 comments on commit b51f5cb

Please sign in to comment.