Skip to content

Commit

Permalink
fix: 验证码的参数名是platformCaptcha
Browse files Browse the repository at this point in the history
  • Loading branch information
Wizzercn committed Apr 25, 2017
1 parent f86c193 commit e9ed85a
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
<form id="loginForm" action="${base!}/platform/login/doLogin" data-parsley-validate="" novalidate=""
role="form"
method="post">
<input type="hidden" id="captcha" name="captcha">
<input type="hidden" id="platformCaptcha" name="platformCaptcha">

<div class="form-group">
<input type="text" id="username" name="username" value="superadmin" required
Expand Down Expand Up @@ -165,7 +165,7 @@ <h4 class="modal-title" style="color:black;">
$("#dialogVeryCode img").attr("src", '${base!}/platform/login/captcha?_=' + new Date().getTime());
return $("#dialogVeryCode").modal({show: true, backdrop: 'static', keyboard: false});
} else {
$("#captcha").val("");
$("#platformCaptcha").val("");
$("#password").val("").focus();
$('#captcha_img').attr('src', '${base!}/platform/login/captcha?_=' + new Date().getTime());
$("#tip").html(data.msg);
Expand All @@ -180,7 +180,7 @@ <h4 class="modal-title" style="color:black;">
$("#f2").submit();
return false;
}
$("#captcha").val($("#verifycode").val());
$("#platformCaptcha").val($("#verifycode").val());
$("#loginForm").submit();
});
$("#dialogVeryCode").on("keypress", function (event) {
Expand Down

0 comments on commit e9ed85a

Please sign in to comment.