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 10b764f4..06550c31 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"/>: - +
"/> + + "/>