From fedcd16780257fbe5837a73b7eed8b4f4db85c7c Mon Sep 17 00:00:00 2001 From: "Shishkevich D." <135337715+shishkevichd@users.noreply.github.com> Date: Thu, 8 May 2025 12:26:20 +0000 Subject: [PATCH] chore: remove `twoFactorQr` object in `mounted` function --- web/html/settings.html | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/web/html/settings.html b/web/html/settings.html index 44f64bec..dec40de7 100644 --- a/web/html/settings.html +++ b/web/html/settings.html @@ -524,18 +524,6 @@ async mounted() { await this.getAllSetting(); - if (this.allSetting.twoFactorEnable) { - this.twoFactor.qrElement = new QRious({ - size: 150, - value: `otpauth://totp/3x-ui:Administrator?secret=${this.allSetting.twoFactorToken}&issuer=3x-ui`, - background: 'white', - backgroundAlpha: 0, - foreground: 'black', - padding: 12, - level: 'L' - }) - } - while (true) { await PromiseUtil.sleep(1000); this.saveBtnDisable = this.oldAllSetting.equals(this.allSetting);