Browse Source

增加开关配置项modifypwdfirstday 控制每月第一天修改密码

新疆体育高职分支
liangkun 1 year ago
parent
commit
b54b36964d
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Controllers/LoginController.cs

+ 1
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Controllers/LoginController.cs View File

@@ -558,7 +558,7 @@ namespace Learun.Application.Web.Controllers
return Success(new { pwd = true });
}
//每月1号强制用户修改密码
if (DateTime.Now.Day == 1 && up == "false")
if (DateTime.Now.Day == 1 && up == "false"&&teachSwitchIBLL.FindFirst("modifypwdfirstday"))
{
return Success(new { pwd = true });
}


Loading…
Cancel
Save