Type of the account.
Change account password.
The following properties need to be updated:
Account id.
Password hash.
Password salt.
Hashing algorithm id.
Inserts a new account.
On successful account insertion, it's generated id needs to be stored in the AccountModel.id property of the
account
argument and null
will be returned.
It is clear that AccountModel.id, AccountModel.username, AccountModel.email, AccountModel.telephone
and maybe another properties will be unique ones. Therefore when duplicates are detected,
an array with names of the duplicated properties needs to be returned back.
This will inform AuthenticationEngine that insertion failed and account registration needs to be aborted.
Account that needs to be inserted.
null
or undefined
when account was inserted successfully.
When account has duplicated fields, their names need to be returned inside of array.
Detect whether an account having same values for unique fields exists in the repository.
Account that needs to be checked whether it has duplicated fields.
null
or undefined
when account has no duplicates.
When account has duplicated fields, their names need to be returned inside of array.
Read account from repository by his email.
Account email.
Account entity or null when not found.
Read account from repository by his id.
Account id.
Account entity or null when not found.
Read account from repository by his telephone number.
Account telephone.
Account entity or null when not found.
Read account from repository by his username.
Account username.
Account entity or null when not found.
Change account availability status by updating AccountModel.disabledUntil property.
Account id.
Disabled until timestamp.
Update account.
Account id.
Fields that needs to be updated.
Repository which stores user accounts.