]> git.proxmox.com Git - proxmox-widget-toolkit.git/blame - window/PasswordEdit.js
use eslint and execute as check target
[proxmox-widget-toolkit.git] / window / PasswordEdit.js
CommitLineData
ec62162d
DM
1Ext.define('Proxmox.window.PasswordEdit', {
2 extend: 'Proxmox.window.Edit',
c9441d5f 3 alias: 'proxmoxWindowPasswordEdit',
18a6f207 4 mixins: ['Proxmox.Mixin.CBind'],
c9441d5f 5
4c21393e 6 subject: gettext('Password'),
c9441d5f 7
4c21393e 8 url: '/api2/extjs/access/password',
c9441d5f 9
4c21393e 10 fieldDefaults: {
18a6f207 11 labelWidth: 120,
4c21393e 12 },
c9441d5f 13
4c21393e
DM
14 items: [
15 {
16 xtype: 'textfield',
17 inputType: 'password',
18 fieldLabel: gettext('Password'),
19 minLength: 5,
a1891d76 20 allowBlank: false,
4c21393e
DM
21 name: 'password',
22 listeners: {
18a6f207
TL
23 change: (field) => field.next().validate(),
24 blur: (field) => field.next().validate(),
25 },
4c21393e
DM
26 },
27 {
28 xtype: 'textfield',
c9441d5f 29 inputType: 'password',
4c21393e 30 fieldLabel: gettext('Confirm password'),
c9441d5f 31 name: 'verifypassword',
a1891d76 32 allowBlank: false,
4c21393e
DM
33 vtype: 'password',
34 initialPassField: 'password',
18a6f207 35 submitValue: false,
4c21393e
DM
36 },
37 {
38 xtype: 'hiddenfield',
18a6f207
TL
39 name: 'userid',
40 cbind: {
41 value: '{userid}',
42 },
43 },
4c21393e 44 ],
c9441d5f 45});