cal.pub0.org/lib/forgot-password/messaging/forgot-password.ts

21 lines
516 B
TypeScript
Raw Normal View History

2021-06-25 14:21:21 +00:00
import buildMessageTemplate from "../../emails/buildMessageTemplate";
2021-06-24 15:59:11 +00:00
export const forgotPasswordSubjectTemplate = "Forgot your password? - Calendso";
export const forgotPasswordMessageTemplate = `Hey there,
Use the link below to reset your password.
{{link}}
p.s. It expires in 6 hours.
- Calendso`;
export const buildForgotPasswordMessage = (vars) => {
return buildMessageTemplate({
subjectTemplate: forgotPasswordSubjectTemplate,
messageTemplate: forgotPasswordMessageTemplate,
vars,
});
};