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 d312ca97f..74ab086d2 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Controllers/LoginController.cs +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Controllers/LoginController.cs @@ -635,14 +635,14 @@ namespace Learun.Application.Web.Controllers { if (password == Md5Helper.Encrypt(Config.GetValue("pwdprex") + "123456", 32) || password == Md5Helper.Encrypt(Config.GetValue("pwdprex") + "2020", 32) || password == Md5Helper.Encrypt(Config.GetValue("defaultpwd"), 32)) { - succresult.defaultPwdTip = true; + succresult.pwd = true; } } else { if (password == Md5Helper.Encrypt(Config.GetValue("pwdprex") + userEntity.F_IdentityCardNo.Substring(userEntity.F_IdentityCardNo.Length - 6, 6), 32) || password == Md5Helper.Encrypt(Config.GetValue("pwdprex") + "2020", 32) || password == Md5Helper.Encrypt(Config.GetValue("defaultpwd"), 32)) { - succresult.defaultPwdTip = true; + succresult.pwd = true; } } diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Views/Home/AdminDefault/index.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Views/Home/AdminDefault/index.js index 503787816..f4a72e5d0 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Views/Home/AdminDefault/index.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Views/Home/AdminDefault/index.js @@ -199,10 +199,7 @@ var bootstrap = function ($, learun) { // }); //} - //初始密码进行提示 - if (sessionStorage.getItem("df0fjl") == "hm") { - layer.alert("您当前密码为初始密码,请尽快修改!", { icon: 7, title: "提示", closeBtn: false, yes: function (index) { sessionStorage.removeItem("df0fjl"); layer.close(index); } }); - } + if (pwd == "true" || sessionStorage.getItem("pase_29d") == "hm") { top.layer.open({ id: 'pwdform', diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Views/Home/ChangePwd.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Views/Home/ChangePwd.cshtml index 7b9e7b530..f643ff42e 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Views/Home/ChangePwd.cshtml +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Views/Home/ChangePwd.cshtml @@ -17,7 +17,7 @@
- 您的密码不满足强度要求,请您先修改密码后再执行系统其他操作! + 您的密码不满足强度要求或是初始密码,请您先修改密码后再执行系统其他操作! 新密码必须8-20位同时包含1.[大小写字母]、2[数字]、3[特殊符号!@@#$%^&*]
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 3d696a04a..793a7b84a 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 @@ -169,9 +169,6 @@ if (res.data.pwdtip == true) { sessionStorage.setItem("pt580", "hm"); } - if (res.data.defaultPwdTip == true) { - sessionStorage.setItem("df0fjl", "hm"); - } window.location.href = "/Home/Index"; } }