const classfantorepo::User

sys::Obj
  fantorepo::User : fanlink::MongoDoc

@Serializable

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)

insert

Void insert(DB db)

make

new make(|This f)

password

const Str password

Hashed password

rest

const Bool rest := 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