Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gic-platform-auth
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
base_platform_enterprise
gic-platform-auth
Commits
74bd4602
Commit
74bd4602
authored
Jan 08, 2020
by
guojuxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改超级管理员,添加发送短信业务逻辑
parent
37012540
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
10 deletions
+0
-10
UserApiServiceImpl.java
...a/com/gic/auth/service/outer/impl/UserApiServiceImpl.java
+0
-10
No files found.
gic-platform-auth-service/src/main/java/com/gic/auth/service/outer/impl/UserApiServiceImpl.java
View file @
74bd4602
...
...
@@ -211,16 +211,6 @@ public class UserApiServiceImpl implements UserApiService {
if
(
adminUser
==
null
)
{
return
ServiceResponse
.
failure
(
ErrorCode
.
PARAMETER_ERROR
.
getCode
(),
"超级管理员不存在,操作有误"
);
}
if
(
userDTO
.
getPasswordType
()
!=
null
&&
userDTO
.
getPasswordType
().
intValue
()
==
2
)
{
//如果是自定义密码
if
(
StringUtils
.
isBlank
(
userDTO
.
getPassword
()))
{
return
ServiceResponse
.
failure
(
ErrorCode
.
PARAMETER_ERROR
.
getCode
(),
"密码为空,操作有误"
);
}
userDTO
.
setPassword
(
AutoCreatePasswordUtils
.
encryptPassword
(
userDTO
.
getPassword
()));
}
else
if
(
userDTO
.
getPasswordType
()
!=
null
&&
userDTO
.
getPasswordType
().
intValue
()
==
1
)
{
//如果是自动生成
userDTO
.
setPassword
(
AutoCreatePasswordUtils
.
autoCreatePassword
(
8
));
}
userDTO
.
setUserId
(
adminUser
.
getUserId
());
userService
.
editUser
(
userDTO
);
return
ServiceResponse
.
success
();
...
...
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