|
@@ -246,17 +246,6 @@ public class SSOLoginLogoutController {
|
|
|
@RequestMapping(value = "/login", method = RequestMethod.POST)
|
|
|
public Result<JSONObject> login(HttpServletRequest request, HttpServletResponse response, @RequestBody SysLoginModel sysLoginModel){
|
|
|
|
|
|
- Cookie[] cookies = request.getCookies();
|
|
|
- if (cookies != null) {
|
|
|
- for (Cookie cookie : cookies) {
|
|
|
- if (cookie.getName().equals("EIToken")) {
|
|
|
- String t = cookie.getValue();
|
|
|
- // 可以在这里处理tokenValue
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- // TODO 要做判断啥的么?
|
|
|
-
|
|
|
Result<JSONObject> result = new Result<JSONObject>();
|
|
|
String username = sysLoginModel.getUsername();
|
|
|
String password = sysLoginModel.getPassword();
|
|
@@ -267,7 +256,6 @@ public class SSOLoginLogoutController {
|
|
|
return result;
|
|
|
}
|
|
|
|
|
|
-// response.setHeader("Set-Cookie", String.format("EIToken=%s; Max-Age=3600; Path=/; Secure; SameSite=None", eiToken));
|
|
|
response.setHeader("Set-Cookie", String.format("EIToken=%s; Max-Age=3600; Path=/", eiToken));
|
|
|
|
|
|
//1. 校验用户是否有效
|