20230403默认密码 有账号的123 没账号的身份证后四五
This commit is contained in:
@@ -666,7 +666,7 @@ namespace BLL
|
||||
JobNum = person.JobNum,
|
||||
PersonName = person.PersonName,
|
||||
Account = person.Account,
|
||||
Password = GetPersonPassWord(person.IdentityCard),
|
||||
Password = GetPersonPassWord(person.IdentityCard, person.Account),
|
||||
IsOffice = person.IsOffice,
|
||||
RoleIds = person.RoleIds,
|
||||
IdentityCard = person.IdentityCard,
|
||||
@@ -1102,19 +1102,22 @@ namespace BLL
|
||||
/// </summary>
|
||||
/// <param name="idCard"></param>
|
||||
/// <returns></returns>
|
||||
public static string GetPersonPassWord(string idCard)
|
||||
public static string GetPersonPassWord(string idCard,string Account)
|
||||
{
|
||||
string passWord = Funs.EncryptionPassword(Const.Password);
|
||||
////现场人员密码
|
||||
if (!string.IsNullOrEmpty(idCard))
|
||||
if (string.IsNullOrEmpty(Account))
|
||||
{
|
||||
if (idCard.Length > 3)
|
||||
////现场人员密码
|
||||
if (!string.IsNullOrEmpty(idCard))
|
||||
{
|
||||
passWord = Funs.EncryptionPassword(idCard.Substring(idCard.Length - 4));
|
||||
}
|
||||
else
|
||||
{
|
||||
passWord = Funs.EncryptionPassword(idCard);
|
||||
if (idCard.Length > 3)
|
||||
{
|
||||
passWord = Funs.EncryptionPassword(idCard.Substring(idCard.Length - 4));
|
||||
}
|
||||
else
|
||||
{
|
||||
passWord = Funs.EncryptionPassword(idCard);
|
||||
}
|
||||
}
|
||||
}
|
||||
return passWord;
|
||||
|
||||
Reference in New Issue
Block a user