Fix: openrouter payload, player restore (relogin)
This commit is contained in:
		| @@ -84,7 +84,11 @@ func HandleFrontLogin(w http.ResponseWriter, r *http.Request) { | ||||
| 		abortWithError(w, err.Error()) | ||||
| 		return | ||||
| 	} | ||||
| 	userstate := models.InitState(cleanName) | ||||
| 	// check if that user was already in db | ||||
| 	userstate, err := loadState(cleanName) | ||||
| 	if err != nil || userstate == nil { | ||||
| 		userstate = models.InitState(cleanName) | ||||
| 	} | ||||
| 	fi := &models.FullInfo{ | ||||
| 		State: userstate, | ||||
| 	} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Grail Finder
					Grail Finder