<% layout('/layouts/default.html', {title: '登录', libs: ['validate'], bodyClass: 'login-page'}){ %> <% include('/include/upgrade.html'){} // 如果客户浏览器版本过低,则显示浏览器升级提示。 %>
<% var isLoginByValidCode = @Global.getConfigToBoolean('user.loginByValidCode', 'true'); %> <% if(isLoginByValidCode){ %> <% } %> <#form:form id="loginForm" model="${user!}" action="${ctxAdmin}/prefix/login" method="post" class="tab-content"> <% if(!isLoginByValidCode && isBlank(message!)){ %> <% }else if(isNotBlank(message!)){ %> <% } %>
<#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"/>
<% if(@Global.getConfigToBoolean('user.loginCodeCorpUnique', 'false')){ %>
<#form:treeselect id="switchCorpSelect" title="${text('登录租户')}" allowClear="false" name="param_corpCode" url="${ctxAdmin}/sys/corpAdmin/treeData?isShowCode=true" placeholder="${text('登录租户')}"/>
<% } %>
<#form:validcode name="validCode" isRequired="true" isRemote="true" isLazy="${!isValidCodeLogin}"/>
 
[ ${text('忘记密码')} ] <% if(@Global.getConfigToBoolean('sys.account.registerUser', 'false')){ %> [ ${text('注册账号')} ] <% } %> <% if (@com.jeesite.common.i18n.I18nLocaleResolver.enabled()){ %> <% } %>
<% } %>