UserCollection

Collection used to manage user objects

Constructors

this
this(User[] list)

Initialize the collection

Members

Aliases

opBinaryRight
alias opBinaryRight = Collection!User.opBinaryRight
opIndex
alias opIndex = Collection!User.opIndex

Functions

byId
User byId(string id)

Get an user by id

byToken
User byToken(string token)

Get an user by an existing token

contains
bool contains(string email)

Check if the collection has an user by email

createToken
Token createToken(string email, SysTime expire, string[] scopes, string type)

Create a token for an user

createUser
bool createUser(UserData data, string password)

Create a new user data from some user data

empower
void empower(string email, string access)

Empower an user with some scope access

revoke
void revoke(string token)

Revoke a token

Meta