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 password
Hashed password
- reset
const Bool reset := false
would 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 userName
Username (lower case)
- website
const Str? website