chore: remove twoFactorQr object in mounted function

This commit is contained in:
Shishkevich D. 2025-05-08 12:26:20 +00:00
parent 83f22403c8
commit fedcd16780

View file

@ -524,18 +524,6 @@
async mounted() { async mounted() {
await this.getAllSetting(); 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) { while (true) {
await PromiseUtil.sleep(1000); await PromiseUtil.sleep(1000);
this.saveBtnDisable = this.oldAllSetting.equals(this.allSetting); this.saveBtnDisable = this.oldAllSetting.equals(this.allSetting);