Browse Source

fix:注释gitlab用户注册功能

lalala 1 year ago
parent
commit
b1ed9aac8c

+ 7 - 7
seecoder-portal-server/src/main/java/cn/seecoder/seecoderportalserver/service/UserService.java

@@ -127,13 +127,13 @@ public class UserService {
         String encodedPassword = passwordEncoder.encode(password);
         user.setPassword(encodedPassword);
         User savedUser = userRepository.save(user);
-        try {
-            gitlabService.createGitlabUser(Math.toIntExact(savedUser.getId()), savedUser.getUsername(), password, savedUser.getEmail());
-        } catch (SeecoderGitlabException e) {
-            userRepository.delete(savedUser);
-            throw new CustomErrorException("创建gitlab账号失败,请联系管理人员!");
-        }
-        log.debug("Created Information for User: {}", savedUser);
+//        try {
+//            gitlabService.createGitlabUser(Math.toIntExact(savedUser.getId()), savedUser.getUsername(), password, savedUser.getEmail());
+//        } catch (SeecoderGitlabException e) {
+//            userRepository.delete(savedUser);
+//            throw new CustomErrorException("创建gitlab账号失败,请联系管理人员!");
+//        }
+//        log.debug("Created Information for User: {}", savedUser);
         return savedUser;
     }