checkemail end point notification

This commit is contained in:
2026-03-18 16:07:34 +01:00
parent a4407b3e40
commit 1a03e3a519
4 changed files with 436 additions and 0 deletions

60
template/checkemail_en.js Normal file
View File

@@ -0,0 +1,60 @@
const tplemail = {};
tplemail.allowedprofils = ["anonymous", "druid"];
tplemail.subject = "Verification code - Email verification";
tplemail.html = `
<html>
<head>
<meta charset="utf-8">
<style>
body {background-color:#fff;}
</style>
</head>
<body>
<table cellpadding="0" cellspacing="0" align="center" style="width: 600px; border: none; padding: 0; background-color:#fff;" width="600">
<tr style="padding:20px 0 0 0; background-color:#fff;">
<td style="border-bottom:1px solid #0DC3FF;" >
<p style="padding:60px 0 10px 0;">
<img width="180px" src="https://smatchit.io/static/img/logo/logoBlackSimple.png" alt="smatchit" />
</p>
</td>
</tr>
<tr>
<td style="padding:20px 0 40px 0;">
<h1 style="font-size:15px;font-family:Monserrat;">Email verification</h1>
<p style="font-size:12px;font-family:Monserrat;">Hello,</p>
<p style="font-size:12px;font-family:Monserrat;">
You requested to verify your email address. Please use the following code to confirm your identity:
</p>
<p style="font-size:24px;font-family:Monserrat;font-weight:bold;text-align:center;padding:20px 0;">
{{code}}
</p>
<p style="font-size:12px;font-family:Monserrat;">
This code is valid for 10 minutes. If you did not request this, you can ignore this email.
</p>
</td>
</tr>
</table>
<table cellpadding="0" cellspacing="0" align="center" style="width: 600px; border: none; padding: 0;" width="600">
<tr bgcolor="#161616">
<td bgcolor="#161616" align="center" style="padding:20px;">
<p style="text-align:center;">
<img width="250px"src="https://smatchit.io/static/img/logo/logoSignature.png" alt="smatchit">
</p>
</td>
</tr>
</table>
</body>
</html>
`;
tplemail.text = `
Email verification
Hello,
You requested to verify your email address. Please use the following code to confirm your identity:
{{code}}
This code is valid for 10 minutes. If you did not request this, you can ignore this email.
`;
module.exports = tplemail;

60
template/checkemail_fr.js Normal file
View File

@@ -0,0 +1,60 @@
const tplemail = {};
tplemail.allowedprofils = ["anonymous", "druid"];
tplemail.subject = "Code de vérification - Vérification de votre email";
tplemail.html = `
<html>
<head>
<meta charset="utf-8">
<style>
body {background-color:#fff;}
</style>
</head>
<body>
<table cellpadding="0" cellspacing="0" align="center" style="width: 600px; border: none; padding: 0; background-color:#fff;" width="600">
<tr style="padding:20px 0 0 0; background-color:#fff;">
<td style="border-bottom:1px solid #0DC3FF;" >
<p style="padding:60px 0 10px 0;">
<img width="180px" src="https://smatchit.io/static/img/logo/logoBlackSimple.png" alt="smatchit" />
</p>
</td>
</tr>
<tr>
<td style="padding:20px 0 40px 0;">
<h1 style="font-size:15px;font-family:Monserrat;">Vérification de votre adresse email</h1>
<p style="font-size:12px;font-family:Monserrat;">Bonjour,</p>
<p style="font-size:12px;font-family:Monserrat;">
Vous avez demandé à vérifier votre adresse email. Veuillez utiliser le code suivant pour confirmer votre identité :
</p>
<p style="font-size:24px;font-family:Monserrat;font-weight:bold;text-align:center;padding:20px 0;">
{{code}}
</p>
<p style="font-size:12px;font-family:Monserrat;">
Ce code est valable pendant 10 minutes. Si vous n'êtes pas à l'origine de cette demande, vous pouvez ignorer cet email.
</p>
</td>
</tr>
</table>
<table cellpadding="0" cellspacing="0" align="center" style="width: 600px; border: none; padding: 0;" width="600">
<tr bgcolor="#161616">
<td bgcolor="#161616" align="center" style="padding:20px;">
<p style="text-align:center;">
<img width="250px"src="https://smatchit.io/static/img/logo/logoSignature.png" alt="smatchit">
</p>
</td>
</tr>
</table>
</body>
</html>
`;
tplemail.text = `
Vérification de votre adresse email
Bonjour,
Vous avez demandé à vérifier votre adresse email. Veuillez utiliser le code suivant pour confirmer votre identité :
{{code}}
Ce code est valable pendant 10 minutes. Si vous n'êtes pas à l'origine de cette demande, vous pouvez ignorer cet email.
`;
module.exports = tplemail;