diff --git a/emails/registration/en/html.pug b/emails/registration/en/html.pug
index 9e1826c..b92f093 100644
--- a/emails/registration/en/html.pug
+++ b/emails/registration/en/html.pug
@@ -6,5 +6,33 @@ span Forgot your Password? :
strong Find it here
span Email:
strong #{emailto}
-p To confirm registration Click Here
+p To confirm the registration click on the button:
+div.divbtn
+ button.btn.btn-lg Verify Registration
+
+
p You could enter to the site and Login.
+
+
+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/emails/registration/es/html.pug b/emails/registration/es/html.pug
new file mode 100644
index 0000000..520e370
--- /dev/null
+++ b/emails/registration/es/html.pug
@@ -0,0 +1,37 @@
+p ¡Bienvenido #{user} al portal #{nomeapp}!
+p Sus datos de acceso a recordar son:
+Nombre Usuario:
+ strong #{user}
+span ¿Olvidaste tu contraseña? :
+ strong Encuéntrelo aquí
+span Email:
+ strong #{emailto}
+p Para confirmar el registro haz clic en el botón:
+div.divbtn
+ button.btn.btn-lg Verificar registro
+
+p Así puedes entrar al sitio e iniciar la sesión.
+
+
+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/emails/registration/es/subject.pug b/emails/registration/es/subject.pug
new file mode 100644
index 0000000..0249b3d
--- /dev/null
+++ b/emails/registration/es/subject.pug
@@ -0,0 +1 @@
+=`Confirmar registro a ${nomeapp}`
diff --git a/server/router/users_router.js b/server/router/users_router.js
index 122e9f1..5b2e1cb 100644
--- a/server/router/users_router.js
+++ b/server/router/users_router.js
@@ -61,6 +61,7 @@ router.post('/', (req, res) => {
// tools.mylog("LINKREG = " + user.linkreg);
// Invia un'email all'utente
// 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);
}
diff --git a/server/server.js b/server/server.js
index 225e956..33c392a 100644
--- a/server/server.js
+++ b/server/server.js
@@ -64,7 +64,7 @@ app.use(bodyParser.json());
i18n.configure({
- locales: ['it', 'en'],
+ locales: ['it', 'en', 'es'],
directory: __dirname + '/locales'
});