21 lines
697 B
TypeScript
21 lines
697 B
TypeScript
import type { App } from "sealious";
|
|
import { EmailTemplates } from "sealious";
|
|
|
|
export default async function RegistrationIntentTemplate(
|
|
app: App,
|
|
{ email_address, token }: { email_address: string; token: string }
|
|
) {
|
|
const context = new app.Context();
|
|
return EmailTemplates.Simple(app, {
|
|
subject: context.i18n`Finish creating your ${app.manifest.name} account`,
|
|
to: email_address,
|
|
text: `To finish setting up your account, click the following link:`,
|
|
buttons: [
|
|
{
|
|
text: context.i18n`To finish setting up your account, click the following link:`,
|
|
href: `${app.manifest.base_url}/account/confirm-registration-email?token=${token}&email=${email_address}`,
|
|
},
|
|
],
|
|
});
|
|
}
|