mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
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:
@@ -248,10 +248,10 @@ public class LoginBean
|
||||
throws ValidatorException
|
||||
{
|
||||
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),
|
||||
new Object[]{3, 32});
|
||||
new Object[]{2, 32});
|
||||
throw new ValidatorException(new FacesMessage(err));
|
||||
}
|
||||
if (name.indexOf('\'') != -1 || name.indexOf('"') != -1 || name.indexOf('\\') != -1)
|
||||
|
Reference in New Issue
Block a user