account auto

This commit is contained in:
2023-05-13 04:17:45 +08:00
parent 9087860b86
commit 2a9bd12882
6 changed files with 95 additions and 21 deletions

View File

@@ -119,7 +119,7 @@ func SessionsItemDelete(w http.ResponseWriter, r *http.Request) {
user := models.User{ID: session.UserID}
user.Get()
sessionx := models.Session{ID: mux.Vars(r)["id"]}
sessionx := models.Session{ID: mux.Vars(r)["session_id"]}
sessionx.Get()
if user.ID != sessionx.UserID {