默认密码123456

This commit is contained in:
wjn 2024-08-02 10:36:10 +08:00
parent 0ed3f4eea3
commit 90b4e7353a

View File

@ -368,15 +368,15 @@ namespace APT.FM.WebApi.Controllers.Api.FM
#region //wyw 密码初始化 Xyy+code姓名拼音首字母(第一个大写) + 工号(取数字)
if (!string.IsNullOrEmpty(entity.NAME) && !string.IsNullOrEmpty(entity.CODE))
{
MD5 md5 = MD5.Create();
string code = DataHelper.GetCodeNO(entity.CODE);
string nameHead = DataHelper.MkPinyinString(entity.NAME);
string NewPwd = DataHelper.MD5Encrypt32(md5, nameHead + code);
entity.PASSWORD = NewPwd;
}
//if (!string.IsNullOrEmpty(entity.NAME) && !string.IsNullOrEmpty(entity.CODE))
//{
// MD5 md5 = MD5.Create();
// string code = DataHelper.GetCodeNO(entity.CODE);
// string nameHead = DataHelper.MkPinyinString(entity.NAME);
// string NewPwd = DataHelper.MD5Encrypt32(md5, nameHead + code);
// entity.PASSWORD = NewPwd;
//}
entity.PASSWORD = "E10ADC3949BA59ABBE56E057F20F883E";
#endregion
}
else