<% layout('/layouts/default.html', {title: '登录', libs: ['validate'], bodyClass: 'login-page'}){ %> <% include('/include/upgrade.html'){} // 如果客户浏览器版本过低,则显示浏览器升级提示。 %> <% var productName = @Global.getConfig('productName'), productVersion = @Global.getConfig('productVersion'); %>
<#form:form id="loginForm" model="${user!}" action="${ctx}/login" method="post">
<#form:input type="text" name="username" class="form-control required" data-msg-required="${text('请填写登录账号.')}" placeholder="${text('登录账号')}" value="${cookie('rememberUserCode')}"/>
<#form:input type="password" name="password" class="form-control required" data-msg-required="${text('请填写登录密码.')}" placeholder="${text('登录密码')}" autocomplete="off"/>
<%/**/%>
<#form:validcode name="validCode" isRequired="true" isRemote="true" isLazy="false"/>
 
<% if(@ObjectUtils.toBoolean(@Global.getConfig('user.registerUser'))){ %> ${text('注册账号')}<% } %> ${text('忘记密码')} <% var langTypeList = @DictUtils.getDictList('sys_lang_type'); if (langTypeList.~size > 1){ %> <% } %>
<% } %>