Enha: state to hold room_id instead of whole room

This commit is contained in:
Grail Finder
2025-05-08 10:25:38 +03:00
parent 3ade7310a7
commit b20f7ac6b7
12 changed files with 110 additions and 35 deletions

View File

@ -80,9 +80,9 @@ func HandleFrontLogin(w http.ResponseWriter, r *http.Request) {
// }
// state := models.InitState(cleanName)
state := models.MakeTestState()
state.Username = cleanName
state.State.Username = cleanName
// save state to cache
saveState(cleanName, state)
saveState(cleanName, state.State)
tmpl.ExecuteTemplate(w, "base", state)
}