取消验证码
This commit is contained in:
parent
eafef5380d
commit
47f869924e
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -36,7 +36,7 @@ namespace IoTGateway.Controllers
|
||||
[HttpPost]
|
||||
public async Task<ActionResult> Login(LoginVM vm)
|
||||
{
|
||||
if (Wtm.ConfigInfo.IsQuickDebug == false)
|
||||
if (false)//Wtm.ConfigInfo.IsQuickDebug == false
|
||||
{
|
||||
var verifyCode = HttpContext.Session.Get<string>("verify_code");
|
||||
if (string.IsNullOrEmpty(verifyCode) || verifyCode.ToLower() != vm.VerifyCode.ToLower())
|
||||
|
@ -20,11 +20,11 @@
|
||||
<title>IoTGateway</title>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#verify_code_img').attr('src', '/_framework/GetVerifyCode?id=' + Math.random());
|
||||
//$('#verify_code_img').attr('src', '/_framework/GetVerifyCode?id=' + Math.random());
|
||||
$("input[name='VerifyCode']").attr('autocomplete', 'off');
|
||||
});
|
||||
function verify() {
|
||||
$('#verify_code_img').attr('src', '/_framework/GetVerifyCode?id=' + Math.random());
|
||||
//$('#verify_code_img').attr('src', '/_framework/GetVerifyCode?id=' + Math.random());
|
||||
}
|
||||
layui.use('layer');
|
||||
</script>
|
||||
@ -52,14 +52,14 @@
|
||||
<i style="width: 16px;"><img src="~/images/icon-login01.png" /></i>
|
||||
<input type="password" name="Password" placeholder="@Model.Localizer["Login.InputPassword"]" class="login-input" value="000000">
|
||||
</li>
|
||||
<li>
|
||||
@*<li>
|
||||
<i><img src="~/images/icon-login03.png" /></i>
|
||||
<input type="text" name="VerifyCode" placeholder="@Model.Localizer["Login.InputValidation"]" class="login-input">
|
||||
<p class="login-code">
|
||||
</p>
|
||||
<img class="login-codeImg" id="verify_code_img">
|
||||
<i class="login-code"><img src="~/images/icon-login02.png" onclick="verify()" /></i>
|
||||
</li>
|
||||
</li>*@
|
||||
<li style="text-align:right;vertical-align:text-top">
|
||||
<input type="checkbox" name="RememberLogin" value="true" @(Model.RememberLogin ? "checked" : "")>
|
||||
<span style="font-size:14px; margin-left:5px;">@Model.Localizer["Login.RememberMe"]</span>
|
||||
|
Loading…
Reference in New Issue
Block a user