1
0
Fork 1
mirror of https://example.com synced 2024-11-30 12:06:38 +09:00

fix: 2fa registration code

This commit is contained in:
Namekuji 2023-06-24 23:18:49 -04:00
parent e520e4b226
commit dabd0d0acc
No known key found for this signature in database
GPG key ID: 1D62332C07FBA532

View file

@ -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({