You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-dev@portals.apache.org by ta...@apache.org on 2011/05/06 07:57:34 UTC
svn commit: r1100071 -
/portals/jetspeed-2/applications/j2-admin/trunk/src/main/java/org/apache/jetspeed/portlets/registration/UserRegistrationPortlet.java
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