Code fragment:
As any Web site, the login page is an indispensable part, such as the corresponding map of the following login page:
The corresponding code fragment is in the/html/portlet/login/login.jsp under root application:
<aui:form action= "<%= loginurl%>" method= "POST" name= "FM" > <aui:input name= "redirect" Type= "Hidd" En "value=" <%= redirect%>/> ... <aui:input label= "<%= loginlabel%>" name = "Login" showrequiredlabel= "<%= false%>" type= "text" value= "<%= login%>" > <aui:valida Tor name= "required"/> </aui:input> <aui:input name= "password" Showrequiredlab El= "<%= false%>" type= password "value=" <%= password%> "> <aui:validator name=" require D "/> </aui:input> <span id=" <portlet:namespace/>passwordcapslockspan " Style= "Display:none;" ><liferay-ui:message key= "caps-lock-is-on"/></span> <c:if test= "<%= company.isAut Ologin () &&! propsvalues.session_disabled%> "> <aui:input checked=" <%= rememberme%>"Inlinelabel=" left "name=" RememberMe "type=" checkbox "/> </c:if> </aui:fieldset> <aui:button-row> <aui:button type= "Submit" value= "sign-in"/> </aui:butto N-row> </aui:form>
The corresponding code for the <%= Loginlabel%> in line 5th is:
<%
String loginlabel = null;
if (Authtype.equals (Companyconstants.auth_type_ea)) {
Loginlabel = "email-address";
}
else if (authtype.equals (COMPANYCONSTANTS.AUTH_TYPE_SN)) {
Loginlabel = "Screen-name";
}
else if (authtype.equals (companyconstants.auth_type_id)) {
Loginlabel = "ID";
}
%>