From ddf2ced0987ec5c6fb31218e5e501b5d9c6cc406 Mon Sep 17 00:00:00 2001 From: julien vdb Date: Sun, 30 Nov 2025 21:43:22 +0100 Subject: [PATCH] 0.12.11 : fix template again --- package.json | 2 +- public/confirmation.html | 166 ++++++++++++++++++ .../1.0.0/full_documentation.json | 2 +- .../users-permissions/strapi-server.ts | 3 +- 4 files changed, 170 insertions(+), 3 deletions(-) create mode 100644 public/confirmation.html diff --git a/package.json b/package.json index 97c4199..6b36d99 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "harmony-back", - "version": "0.12.10", + "version": "0.12.11", "private": true, "description": "A Strapi application", "scripts": { diff --git a/public/confirmation.html b/public/confirmation.html new file mode 100644 index 0000000..aad9309 --- /dev/null +++ b/public/confirmation.html @@ -0,0 +1,166 @@ + +Confirme ton adresse e-mail en un clic pour activer ton compte. + + + + + +
+ + + + + + + + + + + + + + + +
+
+ Votre application +
+

+ ChoralSync +

+

+ Bienvenue — plus qu’une étape +

+
+
+
+

+ Bonjour {{USER_NAME}}, +

+

+ Merci de t’être inscrit. Clique sur le bouton ci-dessous pour + confirmer ton adresse e-mail et activer ton compte. +

+ + + + + + +
+ + Confirmer mon e-mail + +
+ + +

+ Si le bouton ne fonctionne pas, copie-colle ce lien dans ton + navigateur : +

+

+ {{CONFIRM_URL}} +

+
+

+ Si tu n’es pas à l’origine de cette inscription, ignore cet + e-mail. +

+

+ © ChoralSync {{YEAR}} • + www.choralsync.com +

+
+ +
+

+ Besoin d’aide ? Réponds directement à cet e-mail ou consulte notre + centre d’aide. +

+
diff --git a/src/extensions/documentation/documentation/1.0.0/full_documentation.json b/src/extensions/documentation/documentation/1.0.0/full_documentation.json index 881800d..62a3535 100644 --- a/src/extensions/documentation/documentation/1.0.0/full_documentation.json +++ b/src/extensions/documentation/documentation/1.0.0/full_documentation.json @@ -14,7 +14,7 @@ "name": "Apache 2.0", "url": "https://www.apache.org/licenses/LICENSE-2.0.html" }, - "x-generation-date": "2025-11-30T20:21:42.995Z" + "x-generation-date": "2025-11-30T20:43:11.125Z" }, "x-strapi-config": { "plugins": [ diff --git a/src/extensions/users-permissions/strapi-server.ts b/src/extensions/users-permissions/strapi-server.ts index 66c4295..8de7c59 100644 --- a/src/extensions/users-permissions/strapi-server.ts +++ b/src/extensions/users-permissions/strapi-server.ts @@ -52,7 +52,8 @@ module.exports = (plugin) => { const confirmUrl = `${process.env.NEXTJS_URL}/confirmation/submit?confirmation=${confirmationToken}`; // Lecture du template HTML depuis le fichier - const htmlPath = path.join(__dirname, "confirmation.html"); + + const htmlPath = path.join(process.cwd(), "public", "confirmation.html"); let html = await fs.readFile(htmlPath, "utf-8"); // Remplacement des variables