Enha: load state instead of room

This commit is contained in:
Grail Finder
2025-05-07 06:06:21 +03:00
parent 5e92523dcd
commit 3eb54cffff
3 changed files with 15 additions and 7 deletions

View File

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