]> git.proxmox.com Git - proxmox-backup.git/commitdiff
ui: tfa: only immediately trigger webAuthn when its the initial tab
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 27 Jan 2021 18:38:36 +0000 (19:38 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 27 Jan 2021 18:38:40 +0000 (19:38 +0100)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
www/LoginView.js

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