|
@@ -53,7 +53,7 @@ public class AuthorizeController {
|
|
|
@Authorize(enabled = false)
|
|
|
@PostMapping("/login/sms")
|
|
|
public Authorization loginWithSms(@RequestBody @Valid AuthorizeParam.Sms param) {
|
|
|
- return this.authorizeClient.authorize(param);
|
|
|
+ return this.authorizeClient.authorize("sms", param);
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -65,7 +65,7 @@ public class AuthorizeController {
|
|
|
@Authorize(enabled = false)
|
|
|
@PostMapping("/login/wechat")
|
|
|
public Authorization loginWithWechat(@RequestBody @Valid AuthorizeParam.Wechat param) {
|
|
|
- return this.authorizeClient.authorize(param);
|
|
|
+ return this.authorizeClient.authorize("wechat", param);
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -77,7 +77,7 @@ public class AuthorizeController {
|
|
|
@Authorize(enabled = false)
|
|
|
@PostMapping("/token/refresh")
|
|
|
public Authorization refreshToken(@RequestBody @Valid AuthorizeParam.Refresh param) {
|
|
|
- return this.authorizeClient.authorize(param);
|
|
|
+ return this.authorizeClient.authorize("refresh_token", param);
|
|
|
}
|
|
|
|
|
|
/**
|