Commit 523368d2 by wangzelong

Revert "补充添加用户的密码MD5加密"

This reverts commit 2872b5de.
parent 2872b5de
......@@ -356,7 +356,7 @@ public ApiResponse<UserResponse> UpdateUser([CustomizeValidator(RuleSet = "Updat
}
/// <summary>
/// 删除用户
/// 新增用户
/// </summary>
/// <param name="request"></param>
/// <returns></returns>
......
......@@ -444,8 +444,7 @@ public UserResponse InsertUser(UserRequest request, int userid)
int[] roleArray = UnitTypeUtil.Maps.Keys.ToArray();
if (roleArray.Intersect(request.RoleArr).Any() && string.IsNullOrEmpty(request.Department))
throw new PerformanceException("二次绩效管理员科室不能为空");
//Md5小写加密
request.Password = PwdHelper.MD5AndSalt(request.Password);
var user = _mapper.Map<sys_user>(request);
user.CreateDate = DateTime.Now;
user.CreateUser = userid;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment