generalize authentication in #13

This commit is contained in:
SowinskiBraeden committed 2022-06-07 11:12:28 -07:00
1 parent 22d41d04dc
commit eb065c4142
3 files changed
+47 -61

No files matched your search

+3 -2
View File
@@ -15,6 +15,7 @@ import (
*/
type Id struct {
ID primitive.ObjectID `bson:"_id"`
CID string `bson:"cid"` // custom id for admin, teahcer or student
ID primitive.ObjectID `bson:"_id"`
CID string `json:"cid"` // custom id for admin, teahcer or student
ParentType int `json:"parenttype"` // A number representing the user (1: student, 2: teacher, 3: admin)
}