Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | 7x 1x 1x 1x 2x 1x 7x 7x 7x 7x | import { HBSTemplates } from '@/services/handlebars.service';
import { InternalMessager } from './index.mailer';
import appConfig from '@/config/app.config';
export class MFAEmailMailer extends InternalMessager {
constructor(protected receiver: string) {
super([receiver], `Your One-Time Password (OTP) for Secure Access to ${appConfig.appName}`);
}
async generate(body: { name: string; OTP: string; validationPeriod: string }) {
await this.generateMail(HBSTemplates.MFA_EMAIL, body);
return this;
}
}
|