mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Login name (but not password) is now trimmed of leading/trailing whitespace
Fixes http://issues.alfresco.com/browse/AWC-437 git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5020 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -121,6 +121,7 @@ public class LoginBean
|
||||
*/
|
||||
public void setUsername(String val)
|
||||
{
|
||||
if ( val != null ) { val = val.trim(); }
|
||||
this.username = val;
|
||||
}
|
||||
|
||||
@@ -191,6 +192,8 @@ public class LoginBean
|
||||
throws ValidatorException
|
||||
{
|
||||
String name = (String) value;
|
||||
name = name.trim();
|
||||
|
||||
if (name.length() < 2 || name.length() > 32)
|
||||
{
|
||||
String err = MessageFormat.format(Application.getMessage(context, MSG_USERNAME_LENGTH),
|
||||
|
Reference in New Issue
Block a user