|
|
@@ -37,12 +37,13 @@ public class UserService {
|
|
|
|
|
|
public UserService(
|
|
|
UserRepository userRepository, PasswordEncoder passwordEncoder,
|
|
|
- UserMapper userMapper, AliService aliService, GitlabService gitlabService) {
|
|
|
+ UserMapper userMapper, AliService aliService, GitlabService gitlabService, SeecoderGitlabApi gitlabApi) {
|
|
|
this.userRepository = userRepository;
|
|
|
this.passwordEncoder = passwordEncoder;
|
|
|
this.userMapper = userMapper;
|
|
|
this.aliService = aliService;
|
|
|
this.gitlabService = gitlabService;
|
|
|
+ this.gitlabApi = gitlabApi;
|
|
|
}
|
|
|
|
|
|
public List<User> findAllUsers() {
|
|
|
@@ -215,7 +216,7 @@ public class UserService {
|
|
|
try {
|
|
|
user.setPassword(userVO.getUsername());
|
|
|
GitlabUserVO gitlabUserVO = generateGitlabUser(user);
|
|
|
- gitlabApi.changePassword(gitlabUserVO.getUserId(), userVO.getUsername());
|
|
|
+ gitlabApi.changePassword(gitlabUserVO.getUserId(), "12345678" + userVO.getUsername());
|
|
|
} catch (CustomErrorException customErrorException) {
|
|
|
log.error("Yuantu register create gitlab user error");
|
|
|
log.error(customErrorException.getMessage());
|