Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
B
browser-backend
Project
Project
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
Administrator
browser-backend
Commits
6194bfef
Commit
6194bfef
authored
Mar 13, 2020
by
renjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
子用户权限bug
parent
df3f74a5
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
AccountServiceImpl.java
...owserbackend/account/service/impl/AccountServiceImpl.java
+3
-1
No files found.
src/main/java/com/edgec/browserbackend/account/service/impl/AccountServiceImpl.java
View file @
6194bfef
...
...
@@ -25,6 +25,7 @@ import org.springframework.data.domain.Page;
import
org.springframework.data.domain.PageImpl
;
import
org.springframework.data.domain.PageRequest
;
import
org.springframework.data.domain.Pageable
;
import
org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.util.Assert
;
...
...
@@ -652,6 +653,7 @@ public class AccountServiceImpl implements AccountService {
Account
account
=
new
Account
(
user
);
account
.
setPhoneNumber
(
existing
.
getPhoneNumber
());
account
.
setParent
(
name
);
account
.
setPermission
(
subUsersRequestDto
.
getPermission
());
repository
.
save
(
account
);
// emailService.sendEmailVerification(user.getUsername(), user.getEmail(), user.getVerificationCode());
...
...
@@ -688,7 +690,7 @@ public class AccountServiceImpl implements AccountService {
if
(
subUsersRequestDto
.
getPassword
()
!=
null
)
{
com
.
edgec
.
browserbackend
.
auth
.
domain
.
User
user
=
new
com
.
edgec
.
browserbackend
.
auth
.
domain
.
User
();
user
.
setUsername
(
username
);
user
.
setPassword
(
subUsersRequestDto
.
getPassword
());
//
user.setPassword(subUsersRequestDto.getPassword());
userAuthService
.
resetUserPassword
(
user
);
}
if
(
subUsersRequestDto
.
getNickname
()
!=
null
)
...
...
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