From 4f168656fcf121b4bee248a2398cad06b0a60550 Mon Sep 17 00:00:00 2001
From: ssongliu <73214554+ssongliu@users.noreply.github.com>
Date: Sat, 6 May 2023 14:27:33 +0800
Subject: [PATCH] =?UTF-8?q?fix:=20mfa=20=E5=90=AF=E7=94=A8=E6=97=B6?=
 =?UTF-8?q?=EF=BC=8C=E5=A2=9E=E5=8A=A0=E6=97=B6=E9=97=B4=E5=90=8C=E6=AD=A5?=
 =?UTF-8?q?=E6=8F=90=E7=A4=BA=E4=BF=A1=E6=81=AF=20(#895)?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
 frontend/src/lang/modules/en.ts               |  2 ++
 frontend/src/lang/modules/zh.ts               |  1 +
 frontend/src/views/setting/safe/mfa/index.vue | 16 +++++++++++++++-
 3 files changed, 18 insertions(+), 1 deletion(-)
diff --git a/frontend/src/lang/modules/en.ts b/frontend/src/lang/modules/en.ts
index f1926382d..2989f5018 100644
--- a/frontend/src/lang/modules/en.ts
+++ b/frontend/src/lang/modules/en.ts
@@ -888,6 +888,8 @@ const message = {
         complexityHelper:
             'The password must contain at least eight characters and contain at least three uppercase letters, lowercase letters, digits, and special characters',
         mfa: 'MFA',
+        mfaAlert:
+            'MFA password is generated based on the current time. Please ensure that the server time is synchronized.',
         mfaHelper: 'After this function is enabled, the mobile application verification code will be verified',
         mfaHelper1: 'Download a MFA verification mobile app e.g.:',
         mfaHelper2: 'Scan the following QR code using the mobile app to obtain the 6-digit verification code',
diff --git a/frontend/src/lang/modules/zh.ts b/frontend/src/lang/modules/zh.ts
index 2704aee93..67c1a80fd 100644
--- a/frontend/src/lang/modules/zh.ts
+++ b/frontend/src/lang/modules/zh.ts
@@ -925,6 +925,7 @@ const message = {
         complexity: '密码复杂度验证',
         complexityHelper: '开启后密码必须满足密码长度大于 8 位且包含字母、数字及特殊字符',
         mfa: '两步验证',
+        mfaAlert: '两步验证密码是基于当前时间生成,请确保服务器时间已同步',
         mfaHelper: '开启后会验证手机应用验证码',
         mfaHelper1: '下载两步验证手机应用 如:',
         mfaHelper2: '使用手机应用扫描以下二维码,获取 6 位验证码',
diff --git a/frontend/src/views/setting/safe/mfa/index.vue b/frontend/src/views/setting/safe/mfa/index.vue
index a26d73a6f..86b4fc945 100644
--- a/frontend/src/views/setting/safe/mfa/index.vue
+++ b/frontend/src/views/setting/safe/mfa/index.vue
@@ -10,7 +10,21 @@
             
                 
             
-            
+            
+                
+                    
+                        {{ $t('setting.mfaAlert') }}
+                    
+                
+            
+