Checks whether the input can be handled by this class. If it cannot handle the input, rejects with an error explaining why.
Input that could potentially be handled.
A promise resolving if the input can be handled, rejecting with an Error if not.
Generates a record to reset the password for the given email address and then mails it. In case there is no account, no error wil be thrown for privacy reasons. Nothing will happen instead.
Helper function that first runs canHandle followed by handle. Throws the error of canHandle if the data cannot be handled, or returns the result of handle otherwise.
Input data that will be handled if it can be handled.
A promise resolving if the input can be handled, rejecting with an Error if not.
Responsible for the case where a user forgot their password and asks for a reset. Will send out the necessary mail if the email address is known. The JSON response will always be the same to prevent leaking which email addresses are stored.