From 0b3c8c5c9eabf6e1fddcf8e0caf27be8f9010888 Mon Sep 17 00:00:00 2001 From: liangkun Date: Tue, 22 Nov 2022 17:18:51 +0800 Subject: [PATCH] =?UTF-8?q?=E7=99=BB=E5=BD=95=E9=A1=B5=E9=9D=A2=E6=AD=A3?= =?UTF-8?q?=E5=B8=B8=E6=98=BE=E7=A4=BA=E9=AA=8C=E8=AF=81=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Learun.Application.Web/Controllers/LoginController.cs | 8 ++++---- .../Learun.Application.Web/Views/Login/Default/Index.js | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Controllers/LoginController.cs b/Learun.Framework.Ultimate V7/Learun.Application.Web/Controllers/LoginController.cs index 6b4870231..f47e7bfed 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Controllers/LoginController.cs +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Controllers/LoginController.cs @@ -506,9 +506,9 @@ namespace Learun.Application.Web.Controllers public ActionResult CheckLogin(string username, string password, string verifycode, string up) { - int error = OperatorHelper.Instance.GetCurrentErrorNum(); - if (error >= 3) - { + //int error = OperatorHelper.Instance.GetCurrentErrorNum(); + //if (error >= 3) + //{ #region 验证码验证 verifycode = Md5Helper.Encrypt(verifycode.ToLower(), 16); if (Session["session_verifycode"].IsEmpty() || verifycode != Session["session_verifycode"].ToString()) @@ -516,7 +516,7 @@ namespace Learun.Application.Web.Controllers return Fail("验证码错误"); } #endregion - } + //} #region 内部账户验证 UserEntity userEntity = userBll.CheckLogin(username, password); diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Views/Login/Default/Index.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Views/Login/Default/Index.js index 16f9cd334..371a85347 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Views/Login/Default/Index.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Views/Login/Default/Index.js @@ -69,12 +69,12 @@ $("#lr_verifycode_input").val(''); $("#lr_verifycode_img").attr("src", $.rootUrl + "/Login/VerifyCode?time=" + Math.random()); }); - var errornum = $('#errornum').val(); - if (errornum >= 3) { + //var errornum = $('#errornum').val(); + //if (errornum >= 3) { $('.lr-login-bypsw').removeClass('noreg'); $("#lr_verifycode_img").trigger('click'); - } + //} //点击密码icon 显示/隐藏 $('#psw_change').click(function (event) {