Skip to content

Commit e8b1de4

Browse files
committed
Added secret key to help users activate two-factor authentication
1 parent f307aa1 commit e8b1de4

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

app/[locale]/settings/components/otp-validation.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,13 @@ export default function OTPValidationModal( {
137137
>
138138
{chunks}
139139
</a>
140-
)
140+
),
141+
code: ( chunks ) => (
142+
<code className="bg-destructive px-1 font-black text-white">
143+
{chunks}
144+
</code>
145+
),
146+
secret
141147
} )}
142148
</DialogDescription>
143149
</DialogHeader>

locales/en.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@
151151
"otp_validation": {
152152
"trigger": "Two-Factor Authentication Activation",
153153
"title": "Two-Factor Authentication",
154-
"description": "To further secure your account, you can enable two-factor authentication. <br></br>1. First, you need to scan the QR code above with a compatible application like <a1>Google Authenticator</a1> or <a2>Authy</a2>. <br></br>2. Once activated, please enter below the security code generated by your application to validate the two-factor authentication. <br></br>3. When two-factor authentication is validated, you will be prompted to save a backup code to disable two-factor authentication if you lose your phone.",
154+
"description": "To further secure your account, you can enable two-factor authentication.<br></br><br></br>1. First, you need to scan the QR code above with a compatible application like <a1>Google Authenticator</a1> or <a2>Authy</a2>. <br></br>2. Once activated, please enter below the security code generated by your application to validate the two-factor authentication. <br></br>3. When two-factor authentication is validated, you will be prompted to save a backup code to disable two-factor authentication if you lose your phone. <br></br><br></br>If you have trouble scanning this QR code, you can manually enter the following secret key in your authentication application: <code>{secret}</code>.",
155155
"close": "Enable Two-Factor Authentication"
156156
},
157157
"reset_password": {

locales/fr.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@
151151
"otp_validation": {
152152
"trigger": "Activation de l'authentification à deux facteurs",
153153
"title": "Authentification à deux facteurs",
154-
"description": "Afin de sécuriser davantage votre compte, vous pouvez activer l'authentification à deux facteurs. <br></br>1. Tout d'abord, vous devez scanner le code QR ci-dessus avec une application compatible comme <a1>Google Authenticator</a1> ou <a2>Authy</a2>. <br></br>2. Une fois activée, veuillez saisir ci-dessous le code de sécurité généré par votre application pour valider la double authentification. <br></br>3. Lorsque la double authentification est validée, vous serez invité à sauvegarder un code de secours pour désactiver la double authentification si vous perdez votre téléphone.",
154+
"description": "Afin de sécuriser davantage votre compte, vous pouvez activer l'authentification à deux facteurs.<br></br><br></br>1. Tout d'abord, vous devez scanner le code QR ci-dessus avec une application compatible comme <a1>Google Authenticator</a1> ou <a2>Authy</a2>. <br></br>2. Une fois activée, veuillez saisir ci-dessous le code de sécurité généré par votre application pour valider la double authentification. <br></br>3. Lorsque la double authentification est validée, vous serez invité à sauvegarder un code de secours pour désactiver la double authentification si vous perdez votre téléphone.<br></br><br></br>Si vous rencontrez des difficultés pour scanner le code QR, vous pouvez saisir manuellement la clé secrète suivante dans votre application d'authentification : <code>{secret}</code>.",
155155
"close": "Activer l'authentification à deux facteurs"
156156
},
157157
"reset_password": {

0 commit comments

Comments
 (0)