Class ForgotPasswordHandler

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.

Hierarchy

Implements

Constructors

Properties

emailSender: EmailSender
forgotPasswordStore: ForgotPasswordStore
logger: Logger = ...
passwordStore: PasswordStore
resetRoute: InteractionRoute<never>
templateEngine: TemplateEngine<{
    resetLink: string;
}>

Type declaration

  • resetLink: string

Methods