ui: tfa: fix emptyText for password
One needs to enter their password, not the one from the user one adds/deletes TFA. Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
cafccb5991
commit
2ba64bed18
@ -394,8 +394,8 @@ Ext.define('PBS.tfa.confirmRemove', {
|
|||||||
validateBlank: true,
|
validateBlank: true,
|
||||||
padding: '10 0 0 0',
|
padding: '10 0 0 0',
|
||||||
cbind: {
|
cbind: {
|
||||||
emptyText: get =>
|
emptyText: () =>
|
||||||
Ext.String.format(gettext("Confirm password of '{0}'"), get('userid')),
|
Ext.String.format(gettext("Confirm your ({0}) password"), Proxmox.UserName),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
@ -42,12 +42,6 @@ Ext.define('PBS.window.AddTfaRecovery', {
|
|||||||
has_entry: false,
|
has_entry: false,
|
||||||
userid: null,
|
userid: null,
|
||||||
},
|
},
|
||||||
formulas: {
|
|
||||||
passwordConfirmText: (get) => {
|
|
||||||
let id = get('userid');
|
|
||||||
return Ext.String.format(gettext("Confirm password of '{0}'"), id);
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
|
|
||||||
controller: {
|
controller: {
|
||||||
@ -130,9 +124,8 @@ Ext.define('PBS.window.AddTfaRecovery', {
|
|||||||
cbind: {
|
cbind: {
|
||||||
hidden: () => Proxmox.UserName === 'root@pam',
|
hidden: () => Proxmox.UserName === 'root@pam',
|
||||||
disabled: () => Proxmox.UserName === 'root@pam',
|
disabled: () => Proxmox.UserName === 'root@pam',
|
||||||
},
|
emptyText: () =>
|
||||||
bind: {
|
Ext.String.format(gettext("Confirm your ({0}) password"), Proxmox.UserName),
|
||||||
emptyText: '{passwordConfirmText}',
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
@ -57,10 +57,6 @@ Ext.define('PBS.window.AddTotp', {
|
|||||||
secretEmpty: function(get) {
|
secretEmpty: function(get) {
|
||||||
return get('secret').length === 0;
|
return get('secret').length === 0;
|
||||||
},
|
},
|
||||||
passwordConfirmText: (get) => {
|
|
||||||
let id = get('userid');
|
|
||||||
return Ext.String.format(gettext("Confirm password of '{0}'"), id);
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -257,9 +253,8 @@ Ext.define('PBS.window.AddTotp', {
|
|||||||
cbind: {
|
cbind: {
|
||||||
hidden: () => Proxmox.UserName === 'root@pam',
|
hidden: () => Proxmox.UserName === 'root@pam',
|
||||||
disabled: () => Proxmox.UserName === 'root@pam',
|
disabled: () => Proxmox.UserName === 'root@pam',
|
||||||
},
|
emptyText: () =>
|
||||||
bind: {
|
Ext.String.format(gettext("Confirm your ({0}) password"), Proxmox.UserName),
|
||||||
emptyText: '{passwordConfirmText}',
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
@ -24,12 +24,6 @@ Ext.define('PBS.window.AddWebauthn', {
|
|||||||
valid: false,
|
valid: false,
|
||||||
userid: null,
|
userid: null,
|
||||||
},
|
},
|
||||||
formulas: {
|
|
||||||
passwordConfirmText: (get) => {
|
|
||||||
let id = get('userid');
|
|
||||||
return Ext.String.format(gettext("Confirm password of '{0}'"), id);
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
|
|
||||||
controller: {
|
controller: {
|
||||||
@ -188,9 +182,8 @@ Ext.define('PBS.window.AddWebauthn', {
|
|||||||
cbind: {
|
cbind: {
|
||||||
hidden: () => Proxmox.UserName === 'root@pam',
|
hidden: () => Proxmox.UserName === 'root@pam',
|
||||||
disabled: () => Proxmox.UserName === 'root@pam',
|
disabled: () => Proxmox.UserName === 'root@pam',
|
||||||
},
|
emptyText: () =>
|
||||||
bind: {
|
Ext.String.format(gettext("Confirm your ({0}) password"), Proxmox.UserName),
|
||||||
emptyText: '{passwordConfirmText}',
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
Loading…
Reference in New Issue
Block a user