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 <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2021-11-29 17:19:49 +01:00
parent ca867fb10d
commit d739e44117

View File

@ -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',