[pmg-devel] [PATCH gui] UserEdit: add minLength of 4 to username field

Wolfgang Bumiller w.bumiller at proxmox.com
Fri Feb 9 11:12:45 CET 2018


To reflect the minimum length required by the backend.

Signed-off-by: Wolfgang Bumiller <w.bumiller at proxmox.com>
---
 js/UserEdit.js | 1 +
 1 file changed, 1 insertion(+)

diff --git a/js/UserEdit.js b/js/UserEdit.js
index 48e1e58..35163fe 100644
--- a/js/UserEdit.js
+++ b/js/UserEdit.js
@@ -40,6 +40,7 @@ Ext.define('PMG.UserEdit', {
 		fieldLabel: gettext('User name'),
 		renderer: Ext.htmlEncode,
 		allowBlank: false,
+		minLength: 4,
 		cbind: {
 		    submitValue: '{isCreate}',
 		    xtype: '{useridXType}'
-- 
2.11.0




More information about the pmg-devel mailing list