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