添加工作单元

This commit is contained in:
黎明
2022-12-26 14:19:12 +08:00
parent c964b98240
commit ec06d30d59
15 changed files with 297 additions and 14 deletions

View File

@@ -23,7 +23,7 @@ namespace Yi.Framework.Model.Models
/// <summary>
/// 构建密码MD5盐值加密
/// </summary>
public void BuildPassword(string password = null)
public UserEntity BuildPassword(string password = null)
{
//如果不传值那就把自己的password当作传进来的password
if (password == null)
@@ -32,6 +32,7 @@ namespace Yi.Framework.Model.Models
}
this.Salt = Common.Helper.MD5Helper.GenerateSalt();
this.Password = Common.Helper.MD5Helper.SHA2Encode(password, this.Salt);
return this;
}
/// <summary>