Chore: model update

This commit is contained in:
Grail Finder
2025-07-01 16:07:36 +03:00
parent e989590e74
commit 86574bf69c
3 changed files with 59 additions and 130 deletions

View File

@ -79,15 +79,10 @@ func HandleFrontLogin(w http.ResponseWriter, r *http.Request) {
return
}
http.SetCookie(w, cookie)
// tmpl, err := template.ParseGlob("components/*.html")
// if err != nil {
// abortWithError(w, err.Error())
// return
// }
// check if that user was already in db
userstate, err := loadState(cleanName)
if err != nil || userstate == nil {
userstate = models.InitState(cleanName)
userstate = models.InitPlayer(cleanName)
}
fi := &models.FullInfo{
State: userstate,