Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
performance
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zry
performance
Commits
523368d2
Commit
523368d2
authored
Feb 28, 2023
by
wangzelong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "补充添加用户的密码MD5加密"
This reverts commit
2872b5de
.
parent
2872b5de
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
performance/Performance.Api/Controllers/AccountController.cs
+1
-1
performance/Performance.Services/UserService.cs
+1
-2
No files found.
performance/Performance.Api/Controllers/AccountController.cs
View file @
523368d2
...
@@ -356,7 +356,7 @@ public ApiResponse<UserResponse> UpdateUser([CustomizeValidator(RuleSet = "Updat
...
@@ -356,7 +356,7 @@ public ApiResponse<UserResponse> UpdateUser([CustomizeValidator(RuleSet = "Updat
}
}
/// <summary>
/// <summary>
///
删除
用户
///
新增
用户
/// </summary>
/// </summary>
/// <param name="request"></param>
/// <param name="request"></param>
/// <returns></returns>
/// <returns></returns>
...
...
performance/Performance.Services/UserService.cs
View file @
523368d2
...
@@ -444,8 +444,7 @@ public UserResponse InsertUser(UserRequest request, int userid)
...
@@ -444,8 +444,7 @@ public UserResponse InsertUser(UserRequest request, int userid)
int
[]
roleArray
=
UnitTypeUtil
.
Maps
.
Keys
.
ToArray
();
int
[]
roleArray
=
UnitTypeUtil
.
Maps
.
Keys
.
ToArray
();
if
(
roleArray
.
Intersect
(
request
.
RoleArr
).
Any
()
&&
string
.
IsNullOrEmpty
(
request
.
Department
))
if
(
roleArray
.
Intersect
(
request
.
RoleArr
).
Any
()
&&
string
.
IsNullOrEmpty
(
request
.
Department
))
throw
new
PerformanceException
(
"二次绩效管理员科室不能为空"
);
throw
new
PerformanceException
(
"二次绩效管理员科室不能为空"
);
//Md5小写加密
request
.
Password
=
PwdHelper
.
MD5AndSalt
(
request
.
Password
);
var
user
=
_mapper
.
Map
<
sys_user
>(
request
);
var
user
=
_mapper
.
Map
<
sys_user
>(
request
);
user
.
CreateDate
=
DateTime
.
Now
;
user
.
CreateDate
=
DateTime
.
Now
;
user
.
CreateUser
=
userid
;
user
.
CreateUser
=
userid
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment