onetimepwd login

This commit is contained in:
MaxKey
2022-01-27 17:14:51 +08:00
parent 4b973880c9
commit 56563439b6
3 changed files with 11 additions and 6 deletions

View File

@@ -1,5 +1,6 @@
var currentSwitchTab="normalLogin";
function doLoginSubmit(){
currentSwitchTab = $(".switch_tab_current").attr("id") ;
$.cookie("mxk_login_username", $("#"+currentSwitchTab+"Form input[name=username]").val(), { expires: 7 });
$("#"+currentSwitchTab+"SubmitButton").click();
$.cookie("mxk_login_switch_tab", currentSwitchTab, { expires: 7 });