mirror of
https://github.com/pagefaultgames/rogueserver.git
synced 2025-06-28 09:17:17 -04:00
Fix out of date session in /savedata/system/verify
This commit is contained in:
parent
23c2458d8f
commit
b51f5cbf69
1 changed files with 6 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue