From a11c8ab485407643241e3d96a638cb7983708ab1 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Wed, 27 Jan 2021 19:38:36 +0100 Subject: [PATCH] ui: tfa: only immediately trigger webAuthn when its the initial tab Signed-off-by: Thomas Lamprecht --- www/LoginView.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/LoginView.js b/www/LoginView.js index ae443e0f..fc3a3586 100644 --- a/www/LoginView.js +++ b/www/LoginView.js @@ -306,7 +306,7 @@ Ext.define('PBS.login.TfaWindow', { } } - if (challenge.webauthn) { + if (challenge.webauthn && initialTab === 0) { let _promise = me.loginWebauthn(); } },