]> git.proxmox.com Git - pmg-gui.git/commitdiff
js/UserEdit.js: do not allow blank passwords
authorDietmar Maurer <dietmar@proxmox.com>
Thu, 30 Mar 2017 06:09:34 +0000 (08:09 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Thu, 30 Mar 2017 06:09:34 +0000 (08:09 +0200)
js/UserEdit.js

index fe321e762ad8e511deda30f4e5f39821e3d77205..cdc4486e02a7c0db9559abcaa0017e0141986867 100644 (file)
@@ -39,6 +39,7 @@ Ext.define('PMG.UserEdit', {
                inputType: 'password',
                fieldLabel: gettext('Password'),
                minLength: 5,
+               allowBlank: false,
                name: 'password',
                listeners: {
                     change: function(field){
@@ -61,6 +62,7 @@ Ext.define('PMG.UserEdit', {
                name: 'verifypassword',
                vtype: 'password',
                initialPassField: 'password',
+               allowBlank: false,
                submitValue: false,
                hidden: true,  // avoid flicker
                bind: {