Commit 2328b632 authored by liukunyuan's avatar liukunyuan Committed by dev_sky
Browse files

update CommonUtils.java (#3137)



Co-authored-by: default avatardailidong <dailidong66@gmail.com>

solve code smell
parent ace1a25e
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -110,13 +110,13 @@ public class UsersController extends BaseController {
    @PostMapping("/register")
    @ResponseStatus(HttpStatus.OK)
    @ApiException(CREATE_USER_ERROR)
    public <T> Result registerUser(@RequestParam(value = "userName") String userName,
    public Result<Object> registerUser(@RequestParam(value = "userName") String userName,
                                  @RequestParam(value = "userPassword") String userPassword,
                                  @RequestParam(value = "repeatPassword") String repeatPassword,
                                  @RequestParam(value = "email") String email) throws Exception {
        Map<String, Object> result = usersService.registerUser(userName, userPassword, repeatPassword, email);
        logger.info("user self-register, userName: {}, userPassword {}, repeatPassword {}, email {}",
                userName, Constants.PASSWORD_DEFAULT, Constants.PASSWORD_DEFAULT, email);
        Map<String, Object> result = usersService.registerUser(userName, userPassword, repeatPassword, email);
        return returnDataList(result);
    }

+1 −1
Original line number Diff line number Diff line
@@ -48,7 +48,7 @@ public class CommonUtils {
        envPath = envDefaultPath.getPath();
        logger.debug("env path :{}", envPath);
      }else{
        envPath = System.getProperty("user.home") + File.separator + ".bash_profile";
        envPath =  "/etc/profile";
      }
    }