Update of /var/cvs/contributions/CMSContainer_Portlets/portlets-login/src/java/com/finalist/cmsc/portlets In directory james.mmbase.org:/tmp/cvs-serv12458/portlets-login/src/java/com/finalist/cmsc/portlets
Modified Files: Tag: b1_6 RegisterPorlet.java Log Message: NWS-46 - Verplicht maken van registratievelden: naam en achternaam See also: http://cvs.mmbase.org/viewcvs/contributions/CMSContainer_Portlets/portlets-login/src/java/com/finalist/cmsc/portlets See also: http://www.mmbase.org/jira/browse/NWS-46 Index: RegisterPorlet.java =================================================================== RCS file: /var/cvs/contributions/CMSContainer_Portlets/portlets-login/src/java/com/finalist/cmsc/portlets/RegisterPorlet.java,v retrieving revision 1.15.2.1 retrieving revision 1.15.2.2 diff -u -b -r1.15.2.1 -r1.15.2.2 --- RegisterPorlet.java 4 Mar 2009 13:45:09 -0000 1.15.2.1 +++ RegisterPorlet.java 4 Mar 2009 13:56:42 -0000 1.15.2.2 @@ -110,6 +110,16 @@ request.getPortletSession().setAttribute("errorMessages", errorMessages); return; } + if (StringUtils.isBlank(firstName)) { + errorMessages = "register.firstName.empty"; + request.getPortletSession().setAttribute("errorMessages", errorMessages); + return; + } + if (StringUtils.isBlank(lastName)) { + errorMessages = "register.lastName.empty"; + request.getPortletSession().setAttribute("errorMessages", errorMessages); + return; + } if (StringUtils.isEmpty(passwordText)) { errorMessages = "register.password.empty"; request.getPortletSession().setAttribute("errorMessages", errorMessages); _______________________________________________ Cvs mailing list Cvs@lists.mmbase.org http://lists.mmbase.org/mailman/listinfo/cvs