Esempio n. 1
0
// login user
func LoginUser(user *User, c *beego.Controller, remember bool) {
	// werid way of beego session regenerate id...
	c.SessionRegenerateID()
	c.CruSession.Set("auth_user_id", user.Id)
}