func Login(session *view.Session, userDoc interface{}) { session.SetID(userDoc.(mongo.Document).ObjectId().Hex()) session.User = userDoc }
func LoginID(session *view.Session, id string) { session.SetID(id) }