Exemplo n.º 1
0
// UpdateUser updates the User object stored in the session. This is useful incase a change
// is made to the user model that needs to persist across requests.
func UpdateUser(s sessions.Session, user User) error {
	s.Set("AUTHUNIQUEID", user.UniqueId())
	return nil
}
func SearchAnswersCreate(form SearchAnswerForm, r render.Render, db *mgo.Database, req *http.Request, session sessions.Session) {
	session.Set("last_game_id_searched", form.GameId)

	SearchAnswersIndex(r, db, form.GameId, form.Keywords, req)
}