Handles the submission of the ForgotPassword form

Hierarchy

Constructors

Properties

accountStore: AccountStore
emailSender: EmailSender
logger: Logger = ...
resetRoute: InteractionRoute
templateEngine: TemplateEngine<{ resetLink: string }>

Methods

  • 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. Instead nothing will happen instead.

    Parameters

    • email: string

    Returns Promise<void>