From 8b0d109552e272d0cb5860d019d3f14d5ed76d76 Mon Sep 17 00:00:00 2001 From: Paolo Arena Date: Mon, 4 Mar 2019 21:28:35 +0100 Subject: [PATCH] =?UTF-8?q?Fix:=20At=20registration,=20ff=20in=20Italian,?= =?UTF-8?q?=20it=20show=20english=20email=20verified...=20added=20Espa?= =?UTF-8?q?=C3=B1ol=20Email=20registration?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- emails/registration/{en => enUs}/html.pug | 0 emails/registration/{en => enUs}/subject.pug | 0 emails/registration/{es => esEs}/html.pug | 0 emails/registration/{es => esEs}/subject.pug | 0 emails/registration/it/html.pug | 29 +++++++++++++++++++- server/router/users_router.js | 2 +- 6 files changed, 29 insertions(+), 2 deletions(-) rename emails/registration/{en => enUs}/html.pug (100%) rename emails/registration/{en => enUs}/subject.pug (100%) rename emails/registration/{es => esEs}/html.pug (100%) rename emails/registration/{es => esEs}/subject.pug (100%) diff --git a/emails/registration/en/html.pug b/emails/registration/enUs/html.pug similarity index 100% rename from emails/registration/en/html.pug rename to emails/registration/enUs/html.pug diff --git a/emails/registration/en/subject.pug b/emails/registration/enUs/subject.pug similarity index 100% rename from emails/registration/en/subject.pug rename to emails/registration/enUs/subject.pug diff --git a/emails/registration/es/html.pug b/emails/registration/esEs/html.pug similarity index 100% rename from emails/registration/es/html.pug rename to emails/registration/esEs/html.pug diff --git a/emails/registration/es/subject.pug b/emails/registration/esEs/subject.pug similarity index 100% rename from emails/registration/es/subject.pug rename to emails/registration/esEs/subject.pug diff --git a/emails/registration/it/html.pug b/emails/registration/it/html.pug index a1ef572..e394b6a 100644 --- a/emails/registration/it/html.pug +++ b/emails/registration/it/html.pug @@ -6,5 +6,32 @@ span hai dimenticato la Password? :  strong Trovala qui
span Email:  strong #{emailto}
-p Per confermare la registrazione Clicca qui per confermare +p Per confermare la registrazione clicca sul bottone: +div.divbtn + button.btn.btn-lg Verify Registration + p Potrai cosi' accedere al sito digitando i tuoi dati di accesso. + + +style(type="text/css"). + html, body { + padding: 0; + margin: 0; + } + + .divbtn { + display: flex; + align-items: center; + justify-content: center; + } + + .btn-lg { + padding: 5px; + margin: 5px; + font-size: 26px; + cursor: pointer; + color: white; + background: #027be3 !important; + border-radius: 28px; + + } diff --git a/server/router/users_router.js b/server/router/users_router.js index 5b2e1cb..566555d 100644 --- a/server/router/users_router.js +++ b/server/router/users_router.js @@ -63,7 +63,7 @@ router.post('/', (req, res) => { // tools.mylog('process.env.TESTING_ON', process.env.TESTING_ON); console.log('res.locale', res.locale); if (!tools.testing()) { - sendemail.sendEmail_Registration(res.locale, user.email, user.username, user.idapp, user.linkreg); + sendemail.sendEmail_Registration(user.lang, user.email, user.username, user.idapp, user.linkreg); } });