Fix out of date session in /savedata/system/verify

pull/42/head
Pancakes 7 months ago
parent 23c2458d8f
commit b51f5cbf69
No known key found for this signature in database
GPG Key ID: 5792877BFA27DC8F

@ -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) httpError(w, r, fmt.Errorf("failed to decode request body: %s", err), http.StatusBadRequest)
return 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 { } else {
active, err = db.IsActiveSession(uuid, r.URL.Query().Get("clientSessionId")) active, err = db.IsActiveSession(uuid, r.URL.Query().Get("clientSessionId"))
if err != nil { if err != nil {

Loading…
Cancel
Save