From c921982ae79632e52fd05ab58bfcf91840ec9f37 Mon Sep 17 00:00:00 2001
From: Jin <22962980+JYC333@users.noreply.github.com>
Date: Fri, 28 Mar 2025 03:02:03 +0100
Subject: [PATCH] =?UTF-8?q?feat:=20=F0=9F=8E=B8=20set=20generate=20totp=20?=
=?UTF-8?q?function?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../options/multi_factor_authentication.ts | 62 ++++++++++++-------
src/public/translations/cn/translation.json | 5 ++
src/public/translations/en/translation.json | 4 ++
3 files changed, 49 insertions(+), 22 deletions(-)
diff --git a/src/public/app/widgets/type_widgets/options/multi_factor_authentication.ts b/src/public/app/widgets/type_widgets/options/multi_factor_authentication.ts
index 8ed38c2e8..3a03a639e 100644
--- a/src/public/app/widgets/type_widgets/options/multi_factor_authentication.ts
+++ b/src/public/app/widgets/type_widgets/options/multi_factor_authentication.ts
@@ -4,6 +4,7 @@ import OptionsWidget from "./options_widget.js";
import type { OptionMap } from "../../../../../services/options_interface.js";
import { t } from "../../../services/i18n.js";
import utils from "../../../services/utils.js";
+import dialogService from "../../../services/dialog.js";
const TPL_WEB = `
@@ -38,6 +39,11 @@ const TPL_WEB = `
${t("multi_factor_authentication.totp_secret_title")}
+
+
+ ${t("multi_factor_authentication.totp_secret_description_warning")}
+
+