Commit a00953aa authored by 喻春霖's avatar 喻春霖

fixed

parent d25dab65
......@@ -304,8 +304,12 @@ public class AuthController {
clientDataInfo.setAuthUserInfo(userInfo);
clientDataInfo.setOauthType(OauthType.valueOf(oauthType));
System.out.println("clientDataInfo="+ JSON.toJSONString(clientDataInfo));
System.out.println("returnUrl="+ returnUrl);
if (clientDataInfo == null || clientDataInfo.getAuthUserInfo() == null){
response.sendRedirect("auth/index");
return null;
}
modelAndView.addObject("clientDataInfo", clientDataInfo);
modelAndView.addObject("successPostUrl", returnUrl);
}
......@@ -372,6 +376,11 @@ public class AuthController {
}
clientDataInfo.setAuthUserInfo(userInfo);
clientDataInfo.setOauthType(OauthType.valueOf(oauthType));
if (clientDataInfo == null || clientDataInfo.getAuthUserInfo() == null){
response.sendRedirect("auth/index");
return null;
}
modelAndView.addObject("clientDataInfo", clientDataInfo);
modelAndView.addObject("successPostUrl", returnUrl);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment