From 8ae91b57f8b058287edb569419ae35c89c4d8b64 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20FAMIBELLE-PRONZOLA?= Date: Sun, 21 Mar 2021 12:58:55 +0100 Subject: [PATCH] Add new email template to admin config --- config/server.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/config/server.js b/config/server.js index 91b6369..9dd204f 100644 --- a/config/server.js +++ b/config/server.js @@ -1,3 +1,5 @@ +const forgotPasswordTemplate = require('./email-templates/forgot-password'); + module.exports = ({ env }) => ({ host: env('HOST', '0.0.0.0'), port: env.int('PORT', 1337), @@ -7,5 +9,10 @@ module.exports = ({ env }) => ({ auth: { secret: env('ADMIN_JWT_SECRET', '71b106d7b2a4853774b0b27424b77097'), }, + forgotPassword: { + from: env('SMTP_FROM'), + replyTo: env('SMTP_REPLY_TO'), + emailTemplate: forgotPasswordTemplate, + }, }, });