For when the product UI using this component wants to show an extra
confirmation field where the user that executes the password change,
have to confirm their own password.
Reported-by: Wouter Arts <security@wth-security.nl>
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
[ TL: use already included CBind mixin instead of constructor ]
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
labelWidth: 120,
},
+ // allow products to opt-in as their API gains support for this.
+ confirmCurrentPassword: false,
+
items: [
+ {
+ xtype: 'textfield',
+ inputType: 'password',
+ fieldLabel: gettext('Current password'),
+ reference: 'confirmation-password',
+ name: 'confirmation-password',
+ allowBlank: false,
+ vtype: 'password',
+ cbind: {
+ hidden: '{!confirmCurrentPassword}',
+ disabled: '{!confirmCurrentPassword}',
+ },
+ },
{
xtype: 'textfield',
inputType: 'password',