mirror of
https://github.com/pagefaultgames/rogueserver.git
synced 2025-04-03 03:27:13 +08:00
Fix out of date session in /savedata/system/verify
This commit is contained in:
parent
23c2458d8f
commit
b51f5cbf69
@ -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…
x
Reference in New Issue
Block a user