portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tay...@apache.org
Subject svn commit: r1100071 - /portals/jetspeed-2/applications/j2-admin/trunk/src/main/java/org/apache/jetspeed/portlets/registration/UserRegistrationPortlet.java
Date Fri, 06 May 2011 05:57:34 GMT
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-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org


Mime
View raw message