mirror of
https://github.com/MathMan05/Fermi.git
synced 2026-03-30 09:10:01 +00:00
fix 2fa bug
This commit is contained in:
@@ -1522,7 +1522,7 @@ class Captcha implements OptionsElement<string> {
|
||||
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<false | any> {
|
||||
e.ticket = json.ticket;
|
||||
});
|
||||
const ti = form.addTextInput("", "code");
|
||||
better.show();
|
||||
better.show().parentElement!.style.zIndex = "200";
|
||||
});
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user