]>
git.proxmox.com Git - proxmox-widget-toolkit.git/blob - window/PasswordEdit.js
1 Ext
.define('Proxmox.window.PasswordEdit', {
2 extend
: 'Proxmox.window.Edit',
3 alias
: 'proxmoxWindowPasswordEdit',
5 initComponent : function() {
9 throw "no userid specified";
15 var validate_pw = function() {
16 if (verifypw
.getValue() !== pwfield
.getValue()) {
17 return gettext("Passwords does not match");
22 verifypw
= Ext
.createWidget('textfield', {
23 inputType
: 'password',
24 fieldLabel
: gettext('Confirm password'),
25 name
: 'verifypassword',
27 validator
: validate_pw
30 pwfield
= Ext
.createWidget('textfield', {
31 inputType
: 'password',
32 fieldLabel
: gettext('Password'),
35 validator
: validate_pw
39 subject
: gettext('Password'),
40 url
: '/api2/extjs/access/password',