|
@@ -506,9 +506,9 @@ namespace Learun.Application.Web.Controllers |
|
|
public ActionResult CheckLogin(string username, string password, string verifycode, string up) |
|
|
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 验证码验证 |
|
|
#region 验证码验证 |
|
|
verifycode = Md5Helper.Encrypt(verifycode.ToLower(), 16); |
|
|
verifycode = Md5Helper.Encrypt(verifycode.ToLower(), 16); |
|
|
if (Session["session_verifycode"].IsEmpty() || verifycode != Session["session_verifycode"].ToString()) |
|
|
if (Session["session_verifycode"].IsEmpty() || verifycode != Session["session_verifycode"].ToString()) |
|
@@ -516,7 +516,7 @@ namespace Learun.Application.Web.Controllers |
|
|
return Fail("验证码错误"); |
|
|
return Fail("验证码错误"); |
|
|
} |
|
|
} |
|
|
#endregion |
|
|
#endregion |
|
|
} |
|
|
|
|
|
|
|
|
//} |
|
|
|
|
|
|
|
|
#region 内部账户验证 |
|
|
#region 内部账户验证 |
|
|
UserEntity userEntity = userBll.CheckLogin(username, password); |
|
|
UserEntity userEntity = userBll.CheckLogin(username, password); |
|
|