Enha: state to hold room_id instead of whole room
This commit is contained in:
		| @@ -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) | ||||
| } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Grail Finder
					Grail Finder