UserModel

User data used to manage an user

Members

Functions

name
void name(string )
Undocumented in source. Be warned that the author may not have intended to support it.
name
string name()
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

_id
string _id;

The user id

createdAt
SysTime createdAt;
email
string email;

The users email

firstName
string firstName;

The users first name

isActive
bool isActive;

Flag used to determine if the user can perform any actions

lastActivity
ulong lastActivity;

The timestamp of the users last activity

lastName
string lastName;

The users last name

password
string password;

The password hash

salt
string salt;

String concatenated with the pasword before hashing

salutation
string salutation;

The users salutation eg. mr/ms or unset

scopes
string[] scopes;

Scopes that the user has access to

title
string title;

The users title eg. dr

tokens
Token[] tokens;

A list of active tokens

username
string username;

Meta