|
|
@@ -571,21 +571,24 @@ namespace Learun.Application.Web.Controllers |
|
|
|
return Success(new { pwd = true }); |
|
|
|
} |
|
|
|
//是否30天未修改密码验证 |
|
|
|
//TODO:获取开关配置中“30天未修改密码进行提示”项的配置 |
|
|
|
if (userEntity.F_ModifyPwdDate.HasValue) |
|
|
|
//获取开关显示配置中“30天未修改密码登录后提示修改”项的配置 |
|
|
|
if (teachSwitchIBLL.FindFirst("modifypwdtip")) |
|
|
|
{ |
|
|
|
if ((DateTime.Now-userEntity.F_ModifyPwdDate.Value).Days>30) |
|
|
|
if (userEntity.F_ModifyPwdDate.HasValue) |
|
|
|
{ |
|
|
|
return Success(new { pwdtip = true }); |
|
|
|
if ((DateTime.Now-userEntity.F_ModifyPwdDate.Value).Days>30) |
|
|
|
{ |
|
|
|
return Success(new { pwdtip = true }); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
else |
|
|
|
{ |
|
|
|
if (userEntity.F_CreateDate.HasValue && (DateTime.Now-userEntity.F_CreateDate.Value).Days>30) |
|
|
|
else |
|
|
|
{ |
|
|
|
return Success(new { pwdtip=true }); |
|
|
|
if (userEntity.F_CreateDate.HasValue && (DateTime.Now-userEntity.F_CreateDate.Value).Days>30) |
|
|
|
{ |
|
|
|
return Success(new { pwdtip=true }); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
return Success("登录成功"); |
|
|
|
} |
|
|
|