Add expiry warning to user activation mail

This commit is contained in:
2025-06-26 16:30:03 +05:30
parent c5729d968e
commit 38e6521930

View File

@@ -84,13 +84,13 @@ export async function resetUser(userId: string, user: AuthenticatedUser) {
const sent = await sendMail( const sent = await sendMail(
userInDb.email, userInDb.email,
"Quicker Permits account reset", "Quicker Permits account reset",
`Click <a href="${ `<p>Click <a href="${
process.env.SERVER_DOMAIN + process.env.SERVER_DOMAIN +
"/auth/webauthn/register?token=" + "/auth/webauthn/register?token=" +
token + token +
"&email=" + "&email=" +
userInDb.email userInDb.email
}">here</a> to reset.` }">here</a> to reset.</p><p>The above link expires in 48 hours</p>`
); );
} }