Author: taylor
Date: Fri May  6 05:57:34 2011
New Revision: 1100071

URL: http://svn.apache.org/viewvc?rev=1100071&view=rev
Log:
JS2-1230 bug fix

Modified:
    
portals/jetspeed-2/applications/j2-admin/trunk/src/main/java/org/apache/jetspeed/portlets/registration/UserRegistrationPortlet.java

Modified: 
portals/jetspeed-2/applications/j2-admin/trunk/src/main/java/org/apache/jetspeed/portlets/registration/UserRegistrationPortlet.java
URL: 
http://svn.apache.org/viewvc/portals/jetspeed-2/applications/j2-admin/trunk/src/main/java/org/apache/jetspeed/portlets/registration/UserRegistrationPortlet.java?rev=1100071&r1=1100070&r2=1100071&view=diff
==============================================================================
--- 
portals/jetspeed-2/applications/j2-admin/trunk/src/main/java/org/apache/jetspeed/portlets/registration/UserRegistrationPortlet.java
 (original)
+++ 
portals/jetspeed-2/applications/j2-admin/trunk/src/main/java/org/apache/jetspeed/portlets/registration/UserRegistrationPortlet.java
 Fri May  6 05:57:34 2011
@@ -563,8 +563,14 @@ public class UserRegistrationPortlet ext
                         // required ?
                         if (isRequired.booleanValue())
                         {
+                            if (this.optionForceEmailAsUsername && 
key.equals("user.name"))
+                            {
+                                value = convertIfNeed(key, value);
+                                userAttributes.put(key, value);
+                                continue;
+                            }
                             errors.add(resource.getString("error.lacking."
-                                    + key));
+                                        + key));
                         }
                         // place an empty version in userInfo anyway
                         // so that the template will display the correct fields



---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscr...@portals.apache.org
For additional commands, e-mail: jetspeed-dev-h...@portals.apache.org

Reply via email to