mirror of
https://git.proxmox.com/git/proxmox-widget-toolkit
synced 2025-05-05 20:56:23 +00:00
46 lines
925 B
JavaScript
46 lines
925 B
JavaScript
Ext.define('Proxmox.window.PasswordEdit', {
|
|
extend: 'Proxmox.window.Edit',
|
|
alias: 'proxmoxWindowPasswordEdit',
|
|
mixins: ['Proxmox.Mixin.CBind'],
|
|
|
|
subject: gettext('Password'),
|
|
|
|
url: '/api2/extjs/access/password',
|
|
|
|
fieldDefaults: {
|
|
labelWidth: 120,
|
|
},
|
|
|
|
items: [
|
|
{
|
|
xtype: 'textfield',
|
|
inputType: 'password',
|
|
fieldLabel: gettext('Password'),
|
|
minLength: 5,
|
|
allowBlank: false,
|
|
name: 'password',
|
|
listeners: {
|
|
change: (field) => field.next().validate(),
|
|
blur: (field) => field.next().validate(),
|
|
},
|
|
},
|
|
{
|
|
xtype: 'textfield',
|
|
inputType: 'password',
|
|
fieldLabel: gettext('Confirm password'),
|
|
name: 'verifypassword',
|
|
allowBlank: false,
|
|
vtype: 'password',
|
|
initialPassField: 'password',
|
|
submitValue: false,
|
|
},
|
|
{
|
|
xtype: 'hiddenfield',
|
|
name: 'userid',
|
|
cbind: {
|
|
value: '{userid}',
|
|
},
|
|
},
|
|
],
|
|
});
|