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:
Jon Cox
2007-02-02 16:16:52 +00:00
parent 53d66d805a
commit 14f2f44785

View File

@@ -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),