Liferay 6.1 Creates a new user page as shown in figure:
The code for this page is in/html/portlet/login/create_account.jsp:
... <portlet:actionurl var= "Createaccouturl" > <portlet:param name= "savelastpath" value= "0"/> < Portlet:param name= "struts_action" value= "/login/create_account"/> </portlet:actionURL> <aui:form Act ion= "<%= createaccouturl%>" method= "POST" name= "FM" > <aui:input name= "<%= constants.cmd"%> type= " Hidden "value=" <%= constants.add%> "/> <aui:input name=" redirect "Type=" hidden "value=" <%= redirect%
> "/> <aui:input name=" OpenID type= "hidden" value= "<%= openId%>"/>.
<% userpasswordexception upe = (userpasswordexception) errorexception; %> <c:if test= "<%= upe.gettype () = = Userpasswordexception.password_contains_trivial_words%>" &G
T <liferay-ui:message key= " That-password-uses-common-words-please-enter-in-a-password-that-is-harder-to-guess-i-e-contains-a-mix-of-numbers-and-lett
ERs "/> </c:if> <c:if test= "<%= upe.gettype () = = Userpasswordexception.password_invalid%>" > <liferay-ui:message key= "That-password-is-invalid-please-enter-in-a-different-password"/>
;/c:if> <c:if test= "<%= upe.gettype () = Userpasswordexception.password_length%>" > <%= Languageutil.format (PageContext, " That-password-is-too-short-or-too-long-please-make-sure-your-password-is-between-x-and-512-characters ", String.valueof (Passwordpolicy.getminlength ()), false)%> </c:if> <c:if test= "<%= up E.gettype () = = Userpasswordexception.password_too_trivial%> "> <liferay-ui:message key=" that-passwor D-is-too-trivial "/> </c:if> <c:if test=" <%= upe.gettype () = = Userpasswordexception . Passwords_do_not_match%> "> <liferay-ui:message key=" The-passwords-you-entered-do-not-match-eacH-other-please-re-enter-your-password "/> </c:if> </liferay-ui:error> <liferay- Ui:error exception= "<%= userscreennameexception.class%>" message= "Please-enter-a-valid-screen-name"/> ; Liferay-ui:error exception= "<%= websiteurlexception.class%>" message= "Please-enter-a-valid-url"/> & Lt;c:if test= ' <%= sessionmessages.contains (Request, "missingopeniduserinformation")%> ' > <div class= ' Portlet-msg-info "> <liferay-ui:message key=" you-have-successfully-authenticated-please-provide-the-foll Owing-required-information-to-access-the-portal "/> </div> </c:if> <aui:model-c Ontext model= "<%= contact.class%>"/> <aui:fieldset> <aui:column> & Lt;aui:input model= "<%= user.class%>" name= "FirstName"/> <aui:input model= "<%= user.cl Ass%> "Name=" MiddlenaMe "/> <aui:input model=" <%= user.class%> "name=" LastName "> <c:if t Est= "<%= Prefspropsutil.getboolean (Company.getcompanyid (), propskeys.users_last_name_required,
propsvalues.users_last_name_required)%> "> <aui:validator name=" REQUIRED "/>" </c:if> </aui:input> <c:if test= "<%=!
Prefspropsutil.getboolean (Company.getcompanyid (), propskeys.users_screen_name_always_autogenerate)%> "> <aui:input model= "<%= user.class%>" name= "Screenname"/> </c:if> & Lt;aui:input model= "<%= user.class%>" name= "EmailAddress" > <c:if test= "<%= PrefsPropsUtil . Getboolean (Company.getcompanyid (), propskeys.users_email_address_required, Propsvalues.users_email_address_
REQUIRED)%> "> <aui:validator name=" REQUIRED "/>" </c:if> </aui:input> </aui:column> <aui:column> <c:if test= "<%= propsvalues.login_create_account_allow_custom_password%>" > <aui:i Nput label= "Password" name= "Password1" size= "type=" "Password" value= ""/> <aui:input label = "Enter-again" name= "Password2" size= "type=" password "value=" "> <aui:validator name=" Equalt
O "> ' #<portlet:namespace/>password1 ' </aui:validator> </aui:input> </c:if> <c:choose> <c:when te St= "<%= Prefspropsutil.getboolean (Company.getcompanyid (), Propskeys.field_enable_com_liferay_portal_model_
Contact_birthday)%> "> <aui:input name=" Birthday "value=" <%= birthday%> "/>
</c:when> <c:otherwise> <aui:input name= "Birthdaymonth" type= "hidden" value= "<%= Calendar.ja"
Nuary%> "/> <aui:input name=" birthdayday "type=" "Hidden" value= "1"/> <aui:input name= "Birthdayyear" type= "Hidden" value= "1970"/> </c:otherwise> &L t;/c:choose> <c:if test= "<%= Prefspropsutil.getboolean (Company.getcompanyid (), PropsKeys.FIELD
_enable_com_liferay_portal_model_contact_male)%> "> <aui:select label=" Gender "name=" MALE "> <aui:option label= "Male" value= "1"/> <aui:option label= "female" selecte
d= "<%=!male%>" value= "0"/> </aui:select> </c:if> <c:if test= "<%= propsvalues.captcha_check_portal_create_account%>" > <portlet:actionurl wi Ndowstate= "<%= LiferaYWindowState.EXCLUSIVE.toString ()%> "var=" Captchaurl "> <portlet:param name=" struts_action " Value= "/login/captcha"/> </portlet:actionURL> <liferay-ui:captcha URL
= "<%= captchaurl%>"/> </c:if> </aui:column> </aui:fieldset>
<aui:button-row> <aui:button type= "Submit"/> </aui:button-row> </aui:form> <liferay-util:include page= "/html/portlet/login/navigation.jsp"/> <c:if test= "<%= windowState.equ ALS (windowstate.maximized)%> "> <aui:script> Liferay.Util.focusFormField (document.<portlet:na
Mespace/>fm.<portlet:namespace/>firstname); </aui:script> </c:if>