ui: tfa: disable confirm during handling of challenge

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2021-01-27 20:18:43 +01:00
parent 44915932d5
commit 8c8f7b5a09

View File

@ -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]();