|
|
@@ -140,11 +140,7 @@ public class UserService {
|
|
|
});
|
|
|
user.setPassword(passwordEncoder.encode(password));
|
|
|
User savedUser = userRepository.save(user);
|
|
|
- try {
|
|
|
- gitlabService.changePassword(Math.toIntExact(savedUser.getId()),password);
|
|
|
- } catch (SeecoderGitlabException e) {
|
|
|
- throw new CustomErrorException("gitlab密码重置失败,请联系管理人员!");
|
|
|
- }
|
|
|
+ resetGitlabPassword(phone, phoneCode, password);
|
|
|
log.debug("Reset Password for User: {}", savedUser);
|
|
|
}
|
|
|
|