From 76fe507e1800ac3a57041176456e5b0dc6d8d22d Mon Sep 17 00:00:00 2001 From: Hogen Date: Wed, 27 Mar 2024 11:36:52 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=90=8E=E5=8F=B0=E7=99=BB?= =?UTF-8?q?=E5=BD=95=E9=AA=8C=E8=AF=81=E7=A0=81=E6=97=A0=E6=95=88=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- COMCMS.Web/wwwroot/js/rtpost.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/COMCMS.Web/wwwroot/js/rtpost.js b/COMCMS.Web/wwwroot/js/rtpost.js index 36f7af4..bb91210 100644 --- a/COMCMS.Web/wwwroot/js/rtpost.js +++ b/COMCMS.Web/wwwroot/js/rtpost.js @@ -309,10 +309,20 @@ function DoAdminLogin(formId, rules, messages) { password = encMe(password, encrypt_key, 1, 0); username = encMe(username, encrypt_key, 1, 0); var queryString = $myform.formSerialize(); + var code = ""; + if ($("#code").length > 0) { + code = $("#code").val(); + } + var postData = { + username: username, + password: password, + __RequestVerificationToken: rvtoken, + code: code + } $.ajax({ type: "POST", url: url, - data: "username=" + username + "&password=" + password + "&__RequestVerificationToken=" + rvtoken, + data: postData, dataType: "JSON", success: function (data) { if (data.status == "success") {