Reduce minimum user account name length to 2

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@4736 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Paul Holmes-Higgin
2007-01-05 12:51:40 +00:00
parent 65389a8e03
commit 2b3ec98065

View File

@@ -248,10 +248,10 @@ public class LoginBean
throws ValidatorException throws ValidatorException
{ {
String name = (String) value; String name = (String) value;
if (name.length() < 3 || name.length() > 32) if (name.length() < 2 || name.length() > 32)
{ {
String err = MessageFormat.format(Application.getMessage(context, MSG_USERNAME_LENGTH), String err = MessageFormat.format(Application.getMessage(context, MSG_USERNAME_LENGTH),
new Object[]{3, 32}); new Object[]{2, 32});
throw new ValidatorException(new FacesMessage(err)); throw new ValidatorException(new FacesMessage(err));
} }
if (name.indexOf('\'') != -1 || name.indexOf('"') != -1 || name.indexOf('\\') != -1) if (name.indexOf('\'') != -1 || name.indexOf('"') != -1 || name.indexOf('\\') != -1)