Bladeren bron

【修改】默认密码修改;

西昌分支
dyy 8 maanden geleden
bovenliggende
commit
4d61e2b4d7
6 gewijzigde bestanden met toevoegingen van 9 en 8 verwijderingen
  1. +1
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Organization/User/UserBLL.cs
  2. +1
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Organization/User/UserService.cs
  3. +4
    -4
      Learun.Framework.Ultimate V7/Learun.Application.Web/Controllers/LoginController.cs
  4. +1
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/XmlConfig/system.config
  5. +1
    -1
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/EmpInfo/EmpInfoService.cs
  6. +1
    -1
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoBasic/StuInfoBasicService.cs

+ 1
- 1
Learun.Framework.Ultimate V7/Learun.Application.Organization/User/UserBLL.cs Bestand weergeven

@@ -955,7 +955,7 @@ namespace Learun.Application.Organization
{
cache.Remove(cacheKeyId + item, CacheId.user);
}
string password = Md5Helper.Encrypt(ConfigurationManager.AppSettings["pwdprex"] + ConfigurationManager.AppSettings["defaultpwd"], 32).ToLower();
string password = Md5Helper.Encrypt(ConfigurationManager.AppSettings["pwdprex"] + ConfigurationManager.AppSettings["pwdsuff"], 32).ToLower();
userService.RevisePasswordBatch(keyValue, password);
}
catch (Exception ex)


+ 1
- 1
Learun.Framework.Ultimate V7/Learun.Application.Organization/User/UserService.cs Bestand weergeven

@@ -549,7 +549,7 @@ namespace Learun.Application.Organization
{
userEntity.Modify(userModel.F_UserId);
userEntity.F_Secretkey = Md5Helper.Encrypt(CommonHelper.CreateNo(), 16).ToLower();
if (!string.IsNullOrEmpty(userModel.F_IdentityCardNo))
if (!string.IsNullOrEmpty(userModel.F_IdentityCardNo) && userModel.F_IdentityCardNo.Length >= 6)
{
//密码规则:前缀+身份证后6位
password = Md5Helper.Encrypt(ConfigurationManager.AppSettings["pwdprex"] + userModel.F_IdentityCardNo.Substring(userModel.F_IdentityCardNo.Length - 6, 6), 32).ToLower();


+ 4
- 4
Learun.Framework.Ultimate V7/Learun.Application.Web/Controllers/LoginController.cs Bestand weergeven

@@ -631,21 +631,21 @@ namespace Learun.Application.Web.Controllers
}
}
//是否初始密码
if (string.IsNullOrEmpty(userEntity.F_IdentityCardNo))
if (!string.IsNullOrEmpty(userEntity.F_IdentityCardNo) && userEntity.F_IdentityCardNo.Length >= 6)
{
if (password == Md5Helper.Encrypt(Config.GetValue("pwdprex") + "123456", 32) || password == Md5Helper.Encrypt(Config.GetValue("pwdprex") + "2020", 32) || password == Md5Helper.Encrypt(Config.GetValue("defaultpwd"), 32))
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.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))
if (password == Md5Helper.Encrypt(Config.GetValue("pwdprex") + Config.GetValue("pwdsuff"), 32) || password == Md5Helper.Encrypt(Config.GetValue("pwdprex") + "2020", 32) || password == Md5Helper.Encrypt(Config.GetValue("defaultpwd"), 32))
{
succresult.pwd = true;
}
}

return Success(succresult);
}


+ 1
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/XmlConfig/system.config Bestand weergeven

@@ -101,6 +101,7 @@
<add key="defaultpwd" value="123456" />
<add key="defaultpwdeight" value="abc123**" />
<add key="pwdprex" value="Xcmzyz@" />
<add key="pwdsuff" value="123456" />
<!-- ================== 统一身份认证公钥密钥 ================== -->
<add key="SSOPublicSecret" value="bjquanjiang" />
<add key="SSOUserSecret" value="123456789" />


+ 1
- 1
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/EmpInfo/EmpInfoService.cs Bestand weergeven

@@ -406,7 +406,7 @@ sum(case when DATEDIFF(YYYY, t.Birthday, GETDATE()) > 20 and DATEDIFF(YYYY, t.Bi
userbase.F_Account = tEntity.EmpNo;
userbase.F_RealName = tEntity.EmpName;
userbase.F_EnCode = tEntity.EmpNo;
userbase.F_Password = string.IsNullOrEmpty(tEntity.IdentityCardNo) ? Md5Helper.Encrypt(Config.GetValue("pwdprex") + Config.GetValue("defaultpwd"), 32).ToLower() : Md5Helper.Encrypt(Config.GetValue("pwdprex") + tEntity.IdentityCardNo.Substring(tEntity.IdentityCardNo.Length - 6, 6), 32).ToLower();
userbase.F_Password = (!string.IsNullOrEmpty(tEntity.IdentityCardNo) && tEntity.IdentityCardNo.Length >= 6) ? Md5Helper.Encrypt(Config.GetValue("pwdprex") + tEntity.IdentityCardNo.Substring(tEntity.IdentityCardNo.Length - 6, 6), 32).ToLower() : Md5Helper.Encrypt(Config.GetValue("pwdprex") + Config.GetValue("pwdsuff"), 32).ToLower();
userbase.F_HeadIcon = string.IsNullOrEmpty(url) ? Config.GetValue("defaultheadimg") : url;
userbase.F_Gender = tEntity.GenderNo.HasValue ? Convert.ToInt32(tEntity.GenderNo.Value) : 1;
userbase.F_DeleteMark = 0;


+ 1
- 1
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoBasic/StuInfoBasicService.cs Bestand weergeven

@@ -777,7 +777,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
userbase.F_Account = tEntity.StuNo;
userbase.F_RealName = tEntity.StuName;
userbase.F_EnCode = tEntity.StuNo;
userbase.F_Password = string.IsNullOrEmpty(tEntity.IdentityCardNo) ? Md5Helper.Encrypt(Config.GetValue("pwdprex") + Config.GetValue("defaultpwd"), 32).ToLower() : Md5Helper.Encrypt(Config.GetValue("pwdprex") + tEntity.IdentityCardNo.Substring(tEntity.IdentityCardNo.Length - 6, 6), 32).ToLower();
userbase.F_Password = (!string.IsNullOrEmpty(tEntity.IdentityCardNo) && tEntity.IdentityCardNo.Length >= 6) ? Md5Helper.Encrypt(Config.GetValue("pwdprex") + tEntity.IdentityCardNo.Substring(tEntity.IdentityCardNo.Length - 6, 6), 32).ToLower() : Md5Helper.Encrypt(Config.GetValue("pwdprex") + Config.GetValue("pwdsuff"), 32).ToLower();
userbase.F_HeadIcon = string.IsNullOrEmpty(url) ? Config.GetValue("defaultheadimg") : url;
userbase.F_Gender = tEntity.GenderNo.HasValue ? Convert.ToInt32(tEntity.GenderNo.Value) : 1;
userbase.F_DeleteMark = 0;


Laden…
Annuleren
Opslaan