[Yanel-commits] rev 57634 - public/yanel/trunk/src/resources/user-mgmt/src/java/org/wyona/yanel/impl/resources

michi at wyona.com michi at wyona.com
Fri Apr 1 11:00:09 CEST 2011


Author: michi
Date: 2011-04-01 11:00:08 +0200 (Fri, 01 Apr 2011)
New Revision: 57634

Modified:
   public/yanel/trunk/src/resources/user-mgmt/src/java/org/wyona/yanel/impl/resources/CreateUserResource.java
Log:
catch empty strings

Modified: public/yanel/trunk/src/resources/user-mgmt/src/java/org/wyona/yanel/impl/resources/CreateUserResource.java
===================================================================
--- public/yanel/trunk/src/resources/user-mgmt/src/java/org/wyona/yanel/impl/resources/CreateUserResource.java	2011-04-01 08:53:36 UTC (rev 57633)
+++ public/yanel/trunk/src/resources/user-mgmt/src/java/org/wyona/yanel/impl/resources/CreateUserResource.java	2011-04-01 09:00:08 UTC (rev 57634)
@@ -57,7 +57,7 @@
             userManager.createUser(id, name, email, password);
             
             // Create alias
-            if (alias != null) {
+            if (alias != null && alias.trim().length() > 0) {
                 if (log.isDebugEnabled()) {
                 	log.debug("setting alias: " + alias + " for user: " + id + " " + name + " " + email);
                 }



More information about the Yanel-commits mailing list