]> git.proxmox.com Git - proxmox-backup.git/blob - www/window/UserPassword.js
ui: verify config: eslint fix
[proxmox-backup.git] / www / window / UserPassword.js
1 Ext.define('PBS.window.UserPassword', {
2 extend: 'Proxmox.window.Edit',
3 alias: 'widget.pbsUserPassword',
4
5 userid: undefined,
6
7 method: 'PUT',
8
9 subject: gettext('User Password'),
10
11 fieldDefaults: { labelWidth: 120 },
12
13 items: [
14 {
15 xtype: 'textfield',
16 inputType: 'password',
17 fieldLabel: gettext('Password'),
18 minLength: 5,
19 allowBlank: false,
20 name: 'password',
21 listeners: {
22 change: function(field) {
23 field.next().validate();
24 },
25 blur: function(field) {
26 field.next().validate();
27 },
28 },
29 },
30 {
31 xtype: 'textfield',
32 inputType: 'password',
33 fieldLabel: gettext('Confirm password'),
34 name: 'verifypassword',
35 vtype: 'password',
36 initialPassField: 'password',
37 allowBlank: false,
38 submitValue: false,
39 },
40 ],
41 });