PasswordEdit.js: do not allow blank passwords

This commit is contained in:
Dietmar Maurer 2017-03-30 08:03:03 +02:00
parent 4c21393ea7
commit a1891d7676

View File

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