From 375612c30d9fa76d57ba722dd7b8a617295b7fd6 Mon Sep 17 00:00:00 2001 From: shimingxy Date: Fri, 24 Apr 2020 17:10:29 +0800 Subject: [PATCH] Update login.ftl --- .../main/resources/templates/views/login.ftl | 30 +++++++++++-------- 1 file changed, 17 insertions(+), 13 deletions(-) diff --git a/maxkey-web-maxkey/src/main/resources/templates/views/login.ftl b/maxkey-web-maxkey/src/main/resources/templates/views/login.ftl index 10b764f40..06550c31f 100644 --- a/maxkey-web-maxkey/src/main/resources/templates/views/login.ftl +++ b/maxkey-web-maxkey/src/main/resources/templates/views/login.ftl @@ -93,11 +93,11 @@ function doLoginSubmit(){ if(currentSwitchTab=="div_commonLogin"){ $.cookie("username", $("#loginForm input[name=j_username]").val(), { expires: 7 }); $.cookie("switch_form", 1, { expires: 7 }); - $("#loginForm").submit(); + $("#loginSubmitButton").click(); }else{ $.cookie("username", $("#tfaLoginForm input[name=j_username]").val(), { expires: 7 }); $.cookie("switch_form", 2, { expires: 7 }); - $("#tfaLoginForm").submit(); + $("#tfaLoginSubmitButton").click(); } }; @@ -131,11 +131,11 @@ $(function(){ <#--submit loginForme--> $("#loginSubmit").on("click",function(){ - doLoginSubmit(); + doLoginSubmit(); }); <#--submit tfaLoginForme--> $("#tfa_loginSubmit").on("click",function(){ - doLoginSubmit(); + doLoginSubmit(); }); <#--read username cookie for login e--> @@ -202,16 +202,16 @@ $(function(){ - + - + <#if true==isCaptcha> - + @@ -238,7 +238,9 @@ $(function(){ - +
<@locale code="login.text.username"/>:
<@locale code="login.text.password"/>:
<@locale code="login.text.captcha"/>:
"/> + + "/>
@@ -251,25 +253,25 @@ $(function(){ - + - + <#if true==isOneTimePwd > <#if "TOPT"==optType > @@ -304,7 +306,9 @@ $(function(){ - +
<@locale code="login.text.username"/>:
<@locale code="login.text.password"/>:
<@locale code="login.text.currenttime"/>: - +
<@locale code="login.text.captcha"/>: - +
"/> + + "/>