Private
Readonly
forgotPrivate
Readonly
forgotPrivate
Readonly
saltPrivate
Readonly
storageAuthenticate if the username and password are correct and return the WebID if it is. Throw an error if it is not.
The user's WebID.
The user's email.
This user's password.
Creates 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 record id. This should be included in the reset password link.
The user's email.
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
getGets the email associated with the forgot password confirmation record or undefined if it's not present
The user's email.
The record id retrieved from the link.
Private
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)