]> git.proxmox.com Git - pmg-gui.git/commitdiff
UserEdit: add minLength of 4 to username field
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Fri, 9 Feb 2018 10:12:45 +0000 (11:12 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Thu, 15 Feb 2018 07:25:37 +0000 (08:25 +0100)
To reflect the minimum length required by the backend.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
js/UserEdit.js

index 48e1e58882e8655b93849fab6d0e65215333bb28..35163feb349b3d4020081fd9938dd2d0a377d01b 100644 (file)
@@ -40,6 +40,7 @@ Ext.define('PMG.UserEdit', {
                fieldLabel: gettext('User name'),
                renderer: Ext.htmlEncode,
                allowBlank: false,
+               minLength: 4,
                cbind: {
                    submitValue: '{isCreate}',
                    xtype: '{useridXType}'