From dabd0d0acc75ad8d11f20b65cbc6a80492953ac8 Mon Sep 17 00:00:00 2001 From: Namekuji Date: Sat, 24 Jun 2023 23:18:49 -0400 Subject: [PATCH] fix: 2fa registration code --- packages/client/src/pages/settings/2fa.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/client/src/pages/settings/2fa.vue b/packages/client/src/pages/settings/2fa.vue index 56a4cca0f..48d27c31a 100644 --- a/packages/client/src/pages/settings/2fa.vue +++ b/packages/client/src/pages/settings/2fa.vue @@ -176,7 +176,7 @@ async function registerTOTP() { }); if (!qrdialog) return; - const token = await os.inputNumber({ + const token = await os.inputText({ title: i18n.ts._2fa.step3Title, text: i18n.ts._2fa.step3, autocomplete: "one-time-code", @@ -184,7 +184,7 @@ async function registerTOTP() { if (token.canceled) return; await os.apiWithDialog("i/2fa/done", { - token: token.result.toString(), + token: token.result, }); await os.alert({