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:
parent
ca867fb10d
commit
d739e44117
@ -400,6 +400,11 @@ Ext.define('Proxmox.window.TfaLoginWindow', {
|
|||||||
bind: {
|
bind: {
|
||||||
disabled: '{!availableChallenge.u2f}',
|
disabled: '{!availableChallenge.u2f}',
|
||||||
},
|
},
|
||||||
|
tabConfig: {
|
||||||
|
bind: {
|
||||||
|
hidden: '{!availableChallenge.u2f}',
|
||||||
|
},
|
||||||
|
},
|
||||||
items: [
|
items: [
|
||||||
{
|
{
|
||||||
xtype: 'box',
|
xtype: 'box',
|
||||||
@ -430,6 +435,11 @@ Ext.define('Proxmox.window.TfaLoginWindow', {
|
|||||||
bind: {
|
bind: {
|
||||||
disabled: '{!availableChallenge.yubico}',
|
disabled: '{!availableChallenge.yubico}',
|
||||||
},
|
},
|
||||||
|
tabConfig: {
|
||||||
|
bind: {
|
||||||
|
hidden: '{!availableChallenge.yubico}',
|
||||||
|
},
|
||||||
|
},
|
||||||
items: [
|
items: [
|
||||||
{
|
{
|
||||||
xtype: 'textfield',
|
xtype: 'textfield',
|
||||||
|
Loading…
Reference in New Issue
Block a user