]> git.proxmox.com Git - proxmox-widget-toolkit.git/commitdiff
PasswordEdit.js: do not allow blank passwords
authorDietmar Maurer <dietmar@proxmox.com>
Thu, 30 Mar 2017 06:03:03 +0000 (08:03 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Thu, 30 Mar 2017 06:03:03 +0000 (08:03 +0200)
window/PasswordEdit.js

index 246c78610c878101593a64fb4d6e3de15ebd193e..1de97061ba5e5d1dfb2f60fc5f8101164cbffb85 100644 (file)
@@ -16,6 +16,7 @@ Ext.define('Proxmox.window.PasswordEdit', {
            inputType: 'password',
            fieldLabel: gettext('Password'),
            minLength: 5,
+           allowBlank: false,
            name: 'password',
            listeners: {
                 change: function(field){
@@ -31,6 +32,7 @@ Ext.define('Proxmox.window.PasswordEdit', {
            inputType: 'password',
            fieldLabel: gettext('Confirm password'),
            name: 'verifypassword',
+           allowBlank: false,
            vtype: 'password',
            initialPassField: 'password',
            submitValue: false