mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-29 05:17:39 -07:00
fix: 2fa registration code
This commit is contained in:
parent
72dcc5b068
commit
828c3890c9
1 changed files with 2 additions and 2 deletions
|
@ -176,7 +176,7 @@ async function registerTOTP() {
|
||||||
});
|
});
|
||||||
if (!qrdialog) return;
|
if (!qrdialog) return;
|
||||||
|
|
||||||
const token = await os.inputNumber({
|
const token = await os.inputText({
|
||||||
title: i18n.ts._2fa.step3Title,
|
title: i18n.ts._2fa.step3Title,
|
||||||
text: i18n.ts._2fa.step3,
|
text: i18n.ts._2fa.step3,
|
||||||
autocomplete: "one-time-code",
|
autocomplete: "one-time-code",
|
||||||
|
@ -184,7 +184,7 @@ async function registerTOTP() {
|
||||||
if (token.canceled) return;
|
if (token.canceled) return;
|
||||||
|
|
||||||
await os.apiWithDialog("i/2fa/done", {
|
await os.apiWithDialog("i/2fa/done", {
|
||||||
token: token.result.toString(),
|
token: token.result,
|
||||||
});
|
});
|
||||||
|
|
||||||
await os.alert({
|
await os.alert({
|
||||||
|
|
Loading…
Reference in a new issue