ui: tfa: only immediately trigger webAuthn when its the initial tab

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2021-01-27 19:38:36 +01:00
parent 74a50158ca
commit a11c8ab485

View File

@ -306,7 +306,7 @@ Ext.define('PBS.login.TfaWindow', {
}
}
if (challenge.webauthn) {
if (challenge.webauthn && initialTab === 0) {
let _promise = me.loginWebauthn();
}
},