Skip to content

Commit

Permalink
修复后台登录验证码无效问题
Browse files Browse the repository at this point in the history
  • Loading branch information
hogenwang committed Mar 27, 2024
1 parent 8f9049d commit a1c6145
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion COMCMS.Web/wwwroot/js/rtpost.js
Original file line number Diff line number Diff line change
Expand Up @@ -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") {
Expand Down

0 comments on commit a1c6145

Please sign in to comment.