默认密码123456
This commit is contained in:
parent
0ed3f4eea3
commit
90b4e7353a
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user