|
@@ -88,8 +88,13 @@ public class OpenIdController { |
|
@@ -88,8 +88,13 @@ public class OpenIdController { |
88
|
@ApiImplicitParams({
|
88
|
@ApiImplicitParams({
|
89
|
@ApiImplicitParam(name = "authorization", value = "请输入登录返回信息:userId_tokens", required = true, dataType = "string", paramType = "header"),
|
89
|
@ApiImplicitParam(name = "authorization", value = "请输入登录返回信息:userId_tokens", required = true, dataType = "string", paramType = "header"),
|
90
|
})
|
90
|
})
|
91
|
- public ResponseEntity<ResultModel> openIdUnBind(HttpServletRequest request, @CurrentUser User user, @RequestParam String openId, @RequestParam int openIdType,
|
91
|
+ public ResponseEntity<ResultModel> openIdUnBind(HttpServletRequest request, @CurrentUser User user, @RequestParam String password, @RequestParam String openId, @RequestParam int openIdType,
|
92
|
@RequestParam String sign, @RequestParam long t, @RequestParam int type) {
|
92
|
@RequestParam String sign, @RequestParam long t, @RequestParam int type) {
|
|
|
93
|
+ user = loginService.check(user.getLoginAccount(), password);
|
|
|
94
|
+ if (user == null) {//用户,密码错误
|
|
|
95
|
+ return new ResponseEntity<>(ResultModel.error(ResultStatus.USERNAME_OR_PASSWORD_ERROR), HttpStatus.OK);
|
|
|
96
|
+ }
|
|
|
97
|
+
|
93
|
if (!(boolean) request.getAttribute("signAspect"))
|
98
|
if (!(boolean) request.getAttribute("signAspect"))
|
94
|
return new ResponseEntity<>(ResultModel.error(ResultStatus.SIGN_ERROR), HttpStatus.OK);
|
99
|
return new ResponseEntity<>(ResultModel.error(ResultStatus.SIGN_ERROR), HttpStatus.OK);
|
95
|
|
100
|
|