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
2872b5de
Commit
2872b5de
authored
Feb 27, 2023
by
wangzelong
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
补充添加用户的密码MD5加密
parent
408fd2b9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
performance/Performance.Api/Controllers/AccountController.cs
+1
-1
performance/Performance.Services/UserService.cs
+2
-1
No files found.
performance/Performance.Api/Controllers/AccountController.cs
View file @
2872b5de
...
@@ -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 @
2872b5de
...
@@ -444,7 +444,8 @@ public UserResponse InsertUser(UserRequest request, int userid)
...
@@ -444,7 +444,8 @@ 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
;
...
...
王泽龙
@wangzelong
mentioned in commit
523368d2
Feb 28, 2023
mentioned in commit
523368d2
mentioned in commit 523368d2d76870892c38c934aed018f12c34906b
Toggle commit list
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