Private
Readonly
forgotPrivate
Readonly
forgotPrivate
Readonly
saltPrivate
Readonly
storageCreates a new account.
Account email.
Account WebID.
Account password.
Specific settings for the account.
Creates a Forgot Password Confirmation Record. This will be to remember that a user has made a request to reset a password. Throws an error if the email doesn't exist
The user's email.
The record id. This should be included in the reset password link.
Private
getHelper function that converts the given e-mail to an account identifier and retrieves the account data from the internal storage.
Will error if checkExistence
is true and the account does not exist.
Private
getPrivate
getGets the settings associated with this account. Errors if there is no matching account.
The account WebID.
Updates the settings associated with this account.
The account WebID.
New settings for the account.
Verifies the account creation. This can be used with, for example, e-mail verification.
The account can only be used after it is verified.
In case verification is not required, this should be called immediately after the create
call.
The account email.
A EmailPasswordStore that uses a KeyValueStorage to persist its information and an ExpiringStorage to persist ForgotPassword records.
forgotPasswordExpiration
parameter is how long the ForgotPassword record should be stored in minutes. (defaults to 15 minutes)