From d739e44117ee541b9958e15483ae6842bcd37778 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Mon, 29 Nov 2021 17:19:49 +0100 Subject: [PATCH] tfa login: hide u2f and yubico-otp if not available Else it may be to confusing for users to see TFA types they cannot configure anymore (or never could, in the PBS/PMG case). Signed-off-by: Thomas Lamprecht --- src/window/TfaWindow.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/window/TfaWindow.js b/src/window/TfaWindow.js index 27d53f0..22ac50d 100644 --- a/src/window/TfaWindow.js +++ b/src/window/TfaWindow.js @@ -400,6 +400,11 @@ Ext.define('Proxmox.window.TfaLoginWindow', { bind: { disabled: '{!availableChallenge.u2f}', }, + tabConfig: { + bind: { + hidden: '{!availableChallenge.u2f}', + }, + }, items: [ { xtype: 'box', @@ -430,6 +435,11 @@ Ext.define('Proxmox.window.TfaLoginWindow', { bind: { disabled: '{!availableChallenge.yubico}', }, + tabConfig: { + bind: { + hidden: '{!availableChallenge.yubico}', + }, + }, items: [ { xtype: 'textfield',