So users now what to press for starting off a webauthn challenge.
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
+ confirmText: gettext('Confirm Second Factor'),
canConfirm: false,
availabelChallenge: {},
},
canConfirm: false,
availabelChallenge: {},
},
newField.focus();
newField.validate();
}
newField.focus();
newField.validate();
}
+
+ let confirmText = newCard.confirmText || gettext('Confirm Second Factor');
+ this.getViewModel().set('confirmText', confirmText);
+
this.saveLastTabUsed(tabPanel, newCard);
},
},
this.saveLastTabUsed(tabPanel, newCard);
},
},
xtype: 'panel',
title: 'WebAuthn',
iconCls: 'fa fa-fw fa-shield',
xtype: 'panel',
title: 'WebAuthn',
iconCls: 'fa fa-fw fa-shield',
+ confirmText: gettext('Start WebAuthn challenge'),
handler: 'loginWebauthn',
bind: {
disabled: '{!availabelChallenge.webauthn}',
handler: 'loginWebauthn',
bind: {
disabled: '{!availabelChallenge.webauthn}',
- text: gettext('Confirm Second Factor'),
handler: 'loginTFA',
reference: 'tfaButton',
disabled: true,
bind: {
handler: 'loginTFA',
reference: 'tfaButton',
disabled: true,
bind: {
disabled: '{!canConfirm}',
},
},
disabled: '{!canConfirm}',
},
},