Fix: At registration, ff in Italian, it show english email verified... added Español Email registration
This commit is contained in:
@@ -6,5 +6,33 @@ span Forgot your Password? :
|
||||
strong <a href=#{forgetpwd} target="_blank">Find it here</a><br>
|
||||
span Email:
|
||||
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.
|
||||
|
||||
|
||||
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;
|
||||
|
||||
}
|
||||
|
||||
37
emails/registration/es/html.pug
Normal file
37
emails/registration/es/html.pug
Normal file
@@ -0,0 +1,37 @@
|
||||
p ¡Bienvenido #{user} al portal #{nomeapp}!
|
||||
p Sus datos de acceso a recordar son:
|
||||
Nombre Usuario:
|
||||
strong #{user}<br>
|
||||
span ¿Olvidaste tu contraseña? :
|
||||
strong <a href=#{forgetpwd} target="_blank">Encuéntrelo aquí</a><br>
|
||||
span Email:
|
||||
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;
|
||||
|
||||
}
|
||||
1
emails/registration/es/subject.pug
Normal file
1
emails/registration/es/subject.pug
Normal file
@@ -0,0 +1 @@
|
||||
=`Confirmar registro a ${nomeapp}`
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -64,7 +64,7 @@ app.use(bodyParser.json());
|
||||
|
||||
|
||||
i18n.configure({
|
||||
locales: ['it', 'en'],
|
||||
locales: ['it', 'en', 'es'],
|
||||
directory: __dirname + '/locales'
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user