From 4e79ccaa91d11a889ddd2025272b46e52ea037aa Mon Sep 17 00:00:00 2001 From: MathMan05 Date: Fri, 6 Mar 2026 13:06:10 -0600 Subject: [PATCH] fix 2fa bug --- src/webpage/settings.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/webpage/settings.ts b/src/webpage/settings.ts index 21c6298..e74ddb9 100644 --- a/src/webpage/settings.ts +++ b/src/webpage/settings.ts @@ -1522,7 +1522,7 @@ class Captcha implements OptionsElement { const float = new Dialog("", {noSubmit: true}); float.options.addTitle(I18n.form.captcha()); const cap = float.options.addForm("", () => {}, {traditionalSubmit: true}).addCaptcha(); - float.show(); + float.show().parentElement!.style.zIndex = "200"; const ret = cap.makeCaptcha(json); await ret; float.hide(); @@ -1608,7 +1608,7 @@ async function handle2fa(json: any, api: string): Promise { e.ticket = json.ticket; }); const ti = form.addTextInput("", "code"); - better.show(); + better.show().parentElement!.style.zIndex = "200"; }); } } else {