|
|
@@ -76,7 +76,8 @@ public class UserServiceImpl implements UserService {
|
|
|
int userId = changePasswordDTO.getUserId();
|
|
|
String password = changePasswordDTO.getPassword();
|
|
|
System.out.println("userId: "+ userId);
|
|
|
- User user = gitlabApi.getUserApi().getUser(userId);
|
|
|
+ int gitlabUserId = gitlabUserRepository.findByUserId(userId).getGitlabUserId();
|
|
|
+ User user = gitlabApi.getUserApi().getUser(gitlabUserId);
|
|
|
gitlabApi.getUserApi().modifyUser(user, password, 1000);
|
|
|
return true;
|
|
|
}
|