tfa: yubico otp: nudge users in WebAuthn direction

to avoid that they have a yubikey in their hands and think they need
to use Yubico/YubiCloud otp for it to work..

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2021-11-11 19:54:54 +01:00
parent 82a386530e
commit 05da27edef
2 changed files with 8 additions and 3 deletions

View File

@ -268,9 +268,9 @@ Ext.define('Proxmox.panel.TfaView', {
handler: 'addRecovery',
},
{
text: gettext('Yubico'),
text: gettext('Yubico OTP'),
itemId: 'yubico',
iconCls: 'fa fa-fw fa-yahoo',
iconCls: 'fa fa-fw fa-yahoo', // close enough
handler: 'addYubico',
cbind: {
hidden: '{!yubicoEnabled}',

View File

@ -7,7 +7,7 @@ Ext.define('Proxmox.window.AddYubico', {
modal: true,
resizable: false,
title: gettext('Add a Yubico key'),
title: gettext('Add a Yubico OTP key'),
width: 512,
isAdd: true,
@ -120,6 +120,11 @@ Ext.define('Proxmox.window.AddYubico', {
Ext.String.format(gettext("Confirm your ({0}) password"), Proxmox.UserName),
},
},
{
xtype: 'box',
html: `<span class='pmx-hint'>${gettext('Tip:')}</span> `
+ gettext('YubiKeys also support WebAuthn, which is often a better alternative.'),
},
],
},
],