mirror of
https://github.com/pagefaultgames/rogueserver.git
synced 2025-04-03 03:27:13 +08:00
Revert "Fix underlying issue with save override prevention"
This reverts commit c12c7708442eac8e2287f783a62b209b71a24aa4.
This commit is contained in:
parent
c12c770844
commit
8a17845d42
@ -223,7 +223,7 @@ func handleSaveData(w http.ResponseWriter, r *http.Request) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var active bool
|
var active bool
|
||||||
if r.URL.Path == "/savedata/get" && datatype == 0 {
|
if r.URL.Path == "/savedata/get" {
|
||||||
err = db.UpdateActiveSession(uuid, token)
|
err = db.UpdateActiveSession(uuid, token)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
httpError(w, r, fmt.Errorf("failed to update active session: %s", err), http.StatusBadRequest)
|
httpError(w, r, fmt.Errorf("failed to update active session: %s", err), http.StatusBadRequest)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user