mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-07-27 09:20:18 +00:00
ui: tfa: move randomize button right of secret field
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
a12805fbd4
commit
a8740316e3
@ -297,15 +297,27 @@ Ext.define('PVE.window.TFAEdit', {
|
||||
},
|
||||
items: [
|
||||
{
|
||||
layout: 'hbox',
|
||||
border: false,
|
||||
padding: '5 0',
|
||||
items: [{
|
||||
xtype: 'textfield',
|
||||
fieldLabel: gettext('Secret'),
|
||||
name: 'secret',
|
||||
reference: 'tfa-secret',
|
||||
reference: 'tfa_secret',
|
||||
validateValue: function(value) {
|
||||
return value.match(/^[A-Z2-7=]$/);
|
||||
},
|
||||
qrupdate: true,
|
||||
padding: '5 5',
|
||||
flex: 4
|
||||
},
|
||||
{
|
||||
xtype: 'button',
|
||||
text: gettext('Randomize'),
|
||||
reference: 'randomize_button',
|
||||
handler: 'randomizeSecret',
|
||||
flex: 1
|
||||
}]
|
||||
},
|
||||
{
|
||||
xtype: 'numberfield',
|
||||
@ -399,15 +411,6 @@ Ext.define('PVE.window.TFAEdit', {
|
||||
],
|
||||
|
||||
buttons: [
|
||||
{
|
||||
text: gettext('Randomize'),
|
||||
reference: 'randomize-button',
|
||||
handler: 'randomizeSecret',
|
||||
bind: {
|
||||
hidden: '{!in_totp_tab}',
|
||||
disabled: '{!user_tfa}'
|
||||
}
|
||||
},
|
||||
{
|
||||
text: gettext('Apply'),
|
||||
handler: 'applySettings',
|
||||
|
Loading…
Reference in New Issue
Block a user