final class MfaVerificationMailer implements MfaVerificationMailerInterface (View source)

Renders the MFA verification email through Twig and sends it with MailService.

Methods

__construct(MailService $mailService, ConfigurationInterface $config)

No description

bool
isMailConfigurationValid()

No description

bool
sendVerificationCode(string $email, string $code, int $expiresAt, string|null $timezone)

No description

Details

__construct(MailService $mailService, ConfigurationInterface $config)

No description

Parameters

MailService $mailService
ConfigurationInterface $config

bool isMailConfigurationValid()

No description

Return Value

bool

bool sendVerificationCode(string $email, string $code, int $expiresAt, string|null $timezone)

No description

Parameters

string $email
string $code
int $expiresAt

Unix timestamp the code stops being accepted

string|null $timezone

Timezone the expiry is shown in, or the server default

Return Value

bool

Whether the mail was handed to the transport