mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-13 09:40:13 +00:00
ui: auth realm: do not delete tfa if empty on create
that breaks the schema as the POST endpoint obviously doesn't knows
about a delete property.
fixes commit 58e1ccc4f5
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
aaf5e58452
commit
ed00cf491f
@ -48,6 +48,7 @@ Ext.define('PVE.panel.AuthBase', {
|
||||
// last field of column2is tfa
|
||||
me.column2.push({
|
||||
xtype: 'pveTFASelector',
|
||||
deleteEmpty: !me.isCreate,
|
||||
});
|
||||
|
||||
me.columnB.push({
|
||||
|
@ -1,6 +1,9 @@
|
||||
Ext.define('PVE.form.TFASelector', {
|
||||
extend: 'Ext.container.Container',
|
||||
xtype: 'pveTFASelector',
|
||||
mixins: ['Proxmox.Mixin.CBind'],
|
||||
|
||||
deleteEmpty: true,
|
||||
|
||||
viewModel: {
|
||||
data: {
|
||||
@ -66,7 +69,9 @@ Ext.define('PVE.form.TFASelector', {
|
||||
name: 'tfa',
|
||||
hidden: true,
|
||||
submitValue: true,
|
||||
deleteEmpty: true,
|
||||
cbind: {
|
||||
deleteEmpty: '{deleteEmpty}',
|
||||
},
|
||||
bind: {
|
||||
value: "{tfavalue}",
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user