|
@@ -145,8 +145,6 @@ public class SsoApiController {
|
|
ThirdUserAuthCacheUtil.setAuthCode(userAuthenticationDto);
|
|
ThirdUserAuthCacheUtil.setAuthCode(userAuthenticationDto);
|
|
String pattern = "{0}{1}{2}";
|
|
String pattern = "{0}{1}{2}";
|
|
String code = URLEncoder.encode(MessageFormat.format(pattern, userAuthenticationDto.getUid(), SignatureEntityTest.FIELD_JOINER, SignatureEntityTest.encrypt(userAuthenticationDto.getCode())), SystemConstant.CHARSET_NAME);
|
|
String code = URLEncoder.encode(MessageFormat.format(pattern, userAuthenticationDto.getUid(), SignatureEntityTest.FIELD_JOINER, SignatureEntityTest.encrypt(userAuthenticationDto.getCode())), SystemConstant.CHARSET_NAME);
|
|
-
|
|
|
|
- ThirdUserAuthCacheUtil.deleteCache(sysUser.getId());
|
|
|
|
ThirdUserAuthCacheUtil.setAuthReturnUrl(String.valueOf(sysUser.getId()), returnUrl);
|
|
ThirdUserAuthCacheUtil.setAuthReturnUrl(String.valueOf(sysUser.getId()), returnUrl);
|
|
|
|
|
|
HttpServletResponse response = ServletUtil.getResponse();
|
|
HttpServletResponse response = ServletUtil.getResponse();
|
|
@@ -182,6 +180,7 @@ public class SsoApiController {
|
|
LoginResult loginResult = teachcloudCommonService.login(sysUser.getPassword(), sysUser, appSource);
|
|
LoginResult loginResult = teachcloudCommonService.login(sysUser.getPassword(), sysUser, appSource);
|
|
loginResult.setReturnUrl(ThirdUserAuthCacheUtil.getAuthReturnUrl(String.valueOf(sysUser.getId())));
|
|
loginResult.setReturnUrl(ThirdUserAuthCacheUtil.getAuthReturnUrl(String.valueOf(sysUser.getId())));
|
|
ThirdUserAuthCacheUtil.deleteAuthCode(values[0]);
|
|
ThirdUserAuthCacheUtil.deleteAuthCode(values[0]);
|
|
|
|
+ ThirdUserAuthCacheUtil.deleteCache(sysUser.getId());
|
|
return ResultUtil.ok(loginResult);
|
|
return ResultUtil.ok(loginResult);
|
|
}
|
|
}
|
|
|
|
|