From 8c8f7b5a09c7768708c8044a05283a161758ea17 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Wed, 27 Jan 2021 20:18:43 +0100 Subject: [PATCH] ui: tfa: disable confirm during handling of challenge Signed-off-by: Thomas Lamprecht --- www/LoginView.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/www/LoginView.js b/www/LoginView.js index e4245352..d03b0ea4 100644 --- a/www/LoginView.js +++ b/www/LoginView.js @@ -437,6 +437,8 @@ Ext.define('PBS.login.TfaWindow', { loginTFA: function() { let me = this; + // avoid triggering more than once during challenge + me.getViewModel().set('canConfirm', false); let view = me.getView(); let tfaPanel = view.down('tabpanel').getActiveTab(); me[tfaPanel.handler]();