Merge pull request 'refs #5475 redesign 2FA email' (!1657) from 5475_redesign_2FA_email into test
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
Reviewed-on: #1657 Reviewed-by: Vicent Llopis <vicent@verdnatura.es>
This commit is contained in:
commit
43bf7ce707
|
@ -1,5 +1,6 @@
|
|||
.code {
|
||||
border: 2px dashed #8dba25;
|
||||
border-radius: 3px;
|
||||
text-align: center
|
||||
text-align: center;
|
||||
font-size: 24px;
|
||||
}
|
|
@ -1,6 +1,24 @@
|
|||
<email-body v-bind="$props">
|
||||
<!DOCTYPE html>
|
||||
<html v-bind:lang="$i18n.locale">
|
||||
<head>
|
||||
<meta name="viewport" content="width=device-width" />
|
||||
<meta name="format-detection" content="telephone=no" />
|
||||
</head>
|
||||
<body>
|
||||
<table class="grid">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<div class="grid-row">
|
||||
<div class="grid-block vn-pa-ml">
|
||||
<div class="grid-block empty"></div>
|
||||
</div>
|
||||
<div class="grid-row">
|
||||
<div class="grid-block">
|
||||
<email-header v-bind="$props"></email-header>
|
||||
</div>
|
||||
</div>
|
||||
<div class="grid-row">
|
||||
<div class="grid-block vn-pa-md">
|
||||
<h1>{{ $t('title') }}</h1>
|
||||
<p>{{ $t('description') }}</p>
|
||||
<p>
|
||||
|
@ -12,12 +30,16 @@
|
|||
</div>
|
||||
</div>
|
||||
<div class="grid-row">
|
||||
<div class="grid-block vn-pa-ml">
|
||||
<p>{{ $t('Enter the following code to continue to your account') }}</p>
|
||||
<div class="grid-block vn-pa-sm">
|
||||
<p>{{ $t('Enter the following code to continue to your account. It expires in 5 minutes.') }}</p>
|
||||
<div class="code vn-pa-sm vn-m-md">
|
||||
{{ code }}
|
||||
</div>
|
||||
<p>{{ $t('It expires in 5 minutes') }}</p>
|
||||
</div>
|
||||
</div>
|
||||
</email-body>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
const Component = require(`vn-print/core/component`);
|
||||
const emailBody = new Component('email-body');
|
||||
const emailHeader = new Component('email-header');
|
||||
|
||||
module.exports = {
|
||||
name: 'auth-code',
|
||||
components: {
|
||||
'email-body': emailBody.build(),
|
||||
'email-header': emailHeader.build(),
|
||||
},
|
||||
props: {
|
||||
code: {
|
||||
|
|
|
@ -3,5 +3,4 @@ title: Verification code
|
|||
description: Somebody did request a verification code for login. If you didn't request it, please ignore this email.
|
||||
device: 'Device'
|
||||
ip: 'IP'
|
||||
Enter the following code to continue to your account: Enter the following code to continue to your account
|
||||
It expires in 5 minutes: It expires in 5 minutes
|
||||
Enter the following code to continue to your account. It expires in 5 minutes.: Enter the following code to continue to your account. It expires in 5 minutes.
|
||||
|
|
|
@ -3,5 +3,4 @@ title: Código de verificación
|
|||
description: Alguien ha solicitado un código de verificación para poder iniciar sesión. Si no lo has solicitado tu, ignora este email.
|
||||
device: 'Dispositivo'
|
||||
ip: 'IP'
|
||||
Enter the following code to continue to your account: Introduce el siguiente código para poder continuar con tu cuenta
|
||||
It expires in 5 minutes: Expira en 5 minutos
|
||||
Enter the following code to continue to your account. It expires in 5 minutes: Introduce el siguiente código para poder continuar con tu cuenta. Expira en 5 minutos.
|
||||
|
|
|
@ -3,5 +3,4 @@ title: Code de vérification
|
|||
description: Quelqu'un a demandé un code de vérification pour se connecter. Si ce n'était pas toi, ignore cet email.
|
||||
device: 'Appareil'
|
||||
ip: 'IP'
|
||||
Enter the following code to continue to your account: Entrez le code suivant pour continuer avec votre compte
|
||||
It expires in 5 minutes: Il expire dans 5 minutes.
|
||||
Enter the following code to continue to your account. It expires in 5 minutes.: Entrez le code suivant pour continuer avec votre compte. Il expire dans 5 minutes.
|
||||
|
|
|
@ -3,5 +3,4 @@ title: Código de verificação
|
|||
description: Alguém solicitou um código de verificação para entrar. Se você não fez essa solicitação, ignore este e-mail.
|
||||
device: 'Dispositivo'
|
||||
ip: 'IP'
|
||||
Enter the following code to continue to your account: Insira o seguinte código para continuar com sua conta.
|
||||
It expires in 5 minutes: Expira em 5 minutos.
|
||||
Enter the following code to continue to your account. It expires in 5 minutes: Insira o seguinte código para continuar com sua conta. Expira em 5 minutos.
|
||||
|
|
Loading…
Reference in New Issue