Fix: At registration, ff in Italian, it show english email verified... added Español Email registration

This commit is contained in:
Paolo Arena
2019-03-04 21:16:19 +01:00
parent db2640a815
commit 8a92141bc7
5 changed files with 69 additions and 2 deletions

View File

@@ -6,5 +6,33 @@ span Forgot your Password? : 
strong <a href=#{forgetpwd} target="_blank">Find it here</a><br> strong <a href=#{forgetpwd} target="_blank">Find it here</a><br>
span Email:&nbsp; span Email:&nbsp;
strong #{emailto}<br> strong #{emailto}<br>
p To confirm registration <a href=#{strlinkreg} target="_blank">Click Here</a> p To confirm the registration click on the button:
div.divbtn <a href=#{strlinkreg} target="_blank">
button.btn.btn-lg Verify Registration</a>
p You could enter to the site and Login. 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;
}

View File

@@ -0,0 +1,37 @@
p ¡Bienvenido #{user} al portal #{nomeapp}!
p Sus datos de acceso a recordar son:
Nombre Usuario:&nbsp;
strong #{user}<br>
span ¿Olvidaste tu contraseña? :&nbsp;
strong <a href=#{forgetpwd} target="_blank">Encuéntrelo aquí</a><br>
span Email:&nbsp;
strong #{emailto}<br>
p Para confirmar el registro haz clic en el botón:
div.divbtn <a href=#{strlinkreg} target="_blank">
button.btn.btn-lg Verificar registro</a>
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;
}

View File

@@ -0,0 +1 @@
=`Confirmar registro a ${nomeapp}`

View File

@@ -61,6 +61,7 @@ router.post('/', (req, res) => {
// tools.mylog("LINKREG = " + user.linkreg); // tools.mylog("LINKREG = " + user.linkreg);
// Invia un'email all'utente // Invia un'email all'utente
// tools.mylog('process.env.TESTING_ON', process.env.TESTING_ON); // tools.mylog('process.env.TESTING_ON', process.env.TESTING_ON);
console.log('res.locale', res.locale);
if (!tools.testing()) { if (!tools.testing()) {
sendemail.sendEmail_Registration(res.locale, user.email, user.username, user.idapp, user.linkreg); sendemail.sendEmail_Registration(res.locale, user.email, user.username, user.idapp, user.linkreg);
} }

View File

@@ -64,7 +64,7 @@ app.use(bodyParser.json());
i18n.configure({ i18n.configure({
locales: ['it', 'en'], locales: ['it', 'en', 'es'],
directory: __dirname + '/locales' directory: __dirname + '/locales'
}); });