|
|
@@ -44,4 +44,22 @@ public class SsoLoginController extends BaseFrontController {
|
|
|
return StringUtils.isBlank(ssoToken.getData()) ? null : JSON.parseObject(ssoToken.getData(), UserAccount.class);
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ public void loginOther() {
|
|
|
+ UserAccount userAccount = new UserAccount();
|
|
|
+ userAccount.setUserUU(getParaToLong("userUU"));
|
|
|
+ userAccount.setSpaceUU(getParaToLong("spaceUU"));
|
|
|
+ userAccount.setVipName(getPara("vipName"));
|
|
|
+ userAccount.setSpaceName(getPara("spaceName"));
|
|
|
+ userAccount.setMobile(getPara("mobile"));
|
|
|
+ SSOToken st = new SSOToken(getRequest(), userAccount.getMobile());
|
|
|
+ st.setData(JSON.toJSONString(userAccount));
|
|
|
+ SSOHelper.setSSOCookie(getRequest(), getResponse(), st, true);
|
|
|
+ renderText(getPara("callback") + "({success:'1'})");
|
|
|
+ }
|
|
|
+
|
|
|
+ public void logout() {
|
|
|
+ SSOHelper.clearLogin(getRequest(), getResponse());
|
|
|
+ renderText(getPara("callback") + "({success:'1'})");
|
|
|
+ }
|
|
|
}
|