Liferay Login Page Analysis

Source: Internet
Author: User
Tags button type

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"; 
            } 
            %>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.