Selaa lähdekoodia

【修改】初始密码登录强制修改密码;

西昌分支
dyy 6 kuukautta sitten
vanhempi
commit
aaf255802c
4 muutettua tiedostoa jossa 4 lisäystä ja 10 poistoa
  1. +2
    -2
      Learun.Framework.Ultimate V7/Learun.Application.Web/Controllers/LoginController.cs
  2. +1
    -4
      Learun.Framework.Ultimate V7/Learun.Application.Web/Views/Home/AdminDefault/index.js
  3. +1
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Views/Home/ChangePwd.cshtml
  4. +0
    -3
      Learun.Framework.Ultimate V7/Learun.Application.Web/Views/Login/Default/Index.js

+ 2
- 2
Learun.Framework.Ultimate V7/Learun.Application.Web/Controllers/LoginController.cs Näytä tiedosto

@@ -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;
}
}


+ 1
- 4
Learun.Framework.Ultimate V7/Learun.Application.Web/Views/Home/AdminDefault/index.js Näytä tiedosto

@@ -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',


+ 1
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Views/Home/ChangePwd.cshtml Näytä tiedosto

@@ -17,7 +17,7 @@
</div>
<div class="col-xs-12 lr-form-item" data-table="ChangePwd">
<div class="lr-form-item-title"></div>
您的密码不满足强度要求,请您先修改密码后再执行系统其他操作!
您的密码不满足强度要求或是初始密码,请您先修改密码后再执行系统其他操作!
新密码必须8-20位同时包含1.[大小写字母]、2[数字]、3[特殊符号!@@#$%^&*]
</div>
</div>


+ 0
- 3
Learun.Framework.Ultimate V7/Learun.Application.Web/Views/Login/Default/Index.js Näytä tiedosto

@@ -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";
}
}


Ladataan…
Peruuta
Tallenna