mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2025-09-12 05:00:05 +00:00
chore: remove twoFactorQr
object in mounted
function
This commit is contained in:
parent
83f22403c8
commit
fedcd16780
1 changed files with 0 additions and 12 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue