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) {