const classfantorepo302::User
sys::Obj fantorepo302::User : fanlink::MongoDoc
User DTO
- _id
virtual const override ObjectID? _id- email
const Str email- find
static User? find(DB db, Str name, Str? passwordHash := null)find by username (and password if not null)
- fullName
const Str? fullName- insert
Void insert(DB db)- make
new make(|This f)- password
const Str passwordHashed password
- reset
const Bool reset := falsewould be set to true if a temp password was set and not replaced yet by the user
- toStr
virtual override Str toStr()- update
Void update(DB db)- userName
const Str userNameUsername (lower case)
- website
const Str? website