Liferay 6.1的创建新用户页面如图:
这个页面的代码在/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 action="<%= 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 %>"> <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-letters" /> </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="<%= upe.getType() == UserPasswordException.PASSWORD_TOO_TRIVIAL %>"> <liferay-ui:message key="that-password-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" /> <c:if test='<%= SessionMessages.contains(request, "missingOpenIdUserInformation") %>'> <div class="portlet-msg-info"> <liferay-ui:message key="you-have-successfully-authenticated-please-provide-the-following-required-information-to-access-the-portal" /> </div> </c:if> <aui:model-context model="<%= Contact.class %>" /> <aui:fieldset> <aui:column> <aui:input model="<%= User.class %>" name="firstName" /> <aui:input model="<%= User.class %>" name="middleName" /> <aui:input model="<%= User.class %>" name="lastName"> <c:if test="<%= 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> <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:input label="password" name="password1" size="30" type="password" value="" /> <aui:input label="enter-again" name="password2" size="30" type="password" value=""> <aui:validator name="equalTo"> '#<portlet:namespace />password1' </aui:validator> </aui:input> </c:if> <c:choose> <c:when test="<%= 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.JANUARY %>" /> <aui:input name="birthdayDay" type="hidden" value="1" /> <aui:input name="birthdayYear" type="hidden" value="1970" /> </c:otherwise> </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" selected="<%= !male %>" value="0" /> </aui:select> </c:if> <c:if test="<%= PropsValues.CAPTCHA_CHECK_PORTAL_CREATE_ACCOUNT %>"> <portlet:actionURL windowState="<%= 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.equals(WindowState.MAXIMIZED) %>"> <aui:script> Liferay.Util.focusFormField(document.<portlet:namespace />fm.<portlet:namespace />firstName); </aui:script> </c:if>
以上是小编为您精心准备的的内容,在的博客、问答、公众号、人物、课程等栏目也有的相关内容,欢迎继续使用右上角搜索按钮进行搜索页面
, 随机
, 用户
, document
, liferay
, password
详细分析
java 随机验证码、修建性详细规划文本、随机验证码、控制性详细规划文本、js随机生成验证码图片,以便于您获取更多的相关知识。
时间: 2024-09-05 22:45:27