|
|
@@ -62,9 +62,11 @@ public class AuthService {
|
|
|
throw new RuntimeException("请提供用于访问DMS的账号密码");
|
|
|
}
|
|
|
MultiValueMap<String, Object> params = new LinkedMultiValueMap<>();
|
|
|
- params.add("userName", loginName);
|
|
|
+ params.add("username", loginName);
|
|
|
params.add("password", password);
|
|
|
- String response = HttpUtil.requestPost(oauthPath + "/user/register", params, new HashMap<>());
|
|
|
+ Map<String, String> header = new HashMap<>();
|
|
|
+ header.put("token", getTokenOfServiceAccount());
|
|
|
+ String response = HttpUtil.requestPost(oauthPath + "/user/register", params, header);
|
|
|
return JSON.parseObject(response);
|
|
|
}
|
|
|
|