|
@@ -551,7 +551,7 @@ namespace Learun.Application.Web.Controllers |
|
|
[HandlerValidateAntiForgeryToken] |
|
|
[HandlerValidateAntiForgeryToken] |
|
|
public ActionResult CheckLogin(string username, string password, string verifycode, string up) |
|
|
public ActionResult CheckLogin(string username, string password, string verifycode, string up) |
|
|
{ |
|
|
{ |
|
|
|
|
|
|
|
|
|
|
|
up = "true"; |
|
|
int error = OperatorHelper.Instance.GetCurrentErrorNum(); |
|
|
int error = OperatorHelper.Instance.GetCurrentErrorNum(); |
|
|
if (error >= 3) |
|
|
if (error >= 3) |
|
|
{ |
|
|
{ |
|
@@ -621,23 +621,24 @@ namespace Learun.Application.Web.Controllers |
|
|
} |
|
|
} |
|
|
//是否30天未修改密码验证 |
|
|
//是否30天未修改密码验证 |
|
|
//获取开关显示配置中“30天未修改密码登录后提示修改”项的配置 |
|
|
//获取开关显示配置中“30天未修改密码登录后提示修改”项的配置 |
|
|
if (teachSwitchIBLL.FindFirst("modifypwdtip")) |
|
|
|
|
|
{ |
|
|
|
|
|
if (userEntity.F_ModifyPwdDate.HasValue) |
|
|
|
|
|
{ |
|
|
|
|
|
if ((DateTime.Now - userEntity.F_ModifyPwdDate.Value).Days > 30) |
|
|
|
|
|
{ |
|
|
|
|
|
succresult.pwdtip = true; |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
else |
|
|
|
|
|
{ |
|
|
|
|
|
if (userEntity.F_CreateDate.HasValue && (DateTime.Now - userEntity.F_CreateDate.Value).Days > 30) |
|
|
|
|
|
{ |
|
|
|
|
|
succresult.pwdtip = true; |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
//if (teachSwitchIBLL.FindFirst("modifypwdtip")) |
|
|
|
|
|
//{ |
|
|
|
|
|
// if (userEntity.F_ModifyPwdDate.HasValue) |
|
|
|
|
|
// { |
|
|
|
|
|
// if ((DateTime.Now - userEntity.F_ModifyPwdDate.Value).Days > 30) |
|
|
|
|
|
// { |
|
|
|
|
|
// succresult.pwdtip = true; |
|
|
|
|
|
// } |
|
|
|
|
|
// } |
|
|
|
|
|
// else |
|
|
|
|
|
// { |
|
|
|
|
|
// if (userEntity.F_CreateDate.HasValue && (DateTime.Now - userEntity.F_CreateDate.Value).Days > 30) |
|
|
|
|
|
// { |
|
|
|
|
|
// succresult.pwdtip = true; |
|
|
|
|
|
// } |
|
|
|
|
|
// } |
|
|
|
|
|
//} |
|
|
|
|
|
|
|
|
//是否初始密码 |
|
|
//是否初始密码 |
|
|
if (!string.IsNullOrEmpty(userEntity.F_IdentityCardNo) && userEntity.F_IdentityCardNo.Length >= 6) |
|
|
if (!string.IsNullOrEmpty(userEntity.F_IdentityCardNo) && userEntity.F_IdentityCardNo.Length >= 6) |
|
|
{ |
|
|
{ |
|
@@ -654,7 +655,6 @@ namespace Learun.Application.Web.Controllers |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return Success(succresult); |
|
|
return Success(succresult); |
|
|
} |
|
|
} |
|
|
#endregion |
|
|
#endregion |
|
|