Commit b9e45cfc authored by Quxl's avatar Quxl

x

parent f32bfddb
...@@ -25,9 +25,11 @@ public class UserLoginInterceptor extends HandlerInterceptorAdapter { ...@@ -25,9 +25,11 @@ public class UserLoginInterceptor extends HandlerInterceptorAdapter {
} else { } else {
String sessionid = null; String sessionid = null;
Cookie[] cookies = req.getCookies(); Cookie[] cookies = req.getCookies();
for(Cookie cookie : cookies) { if(cookies != null) {
if(cookie.getName().equals(UserTokenService.LOGINID_COOKIE_NAME)) { for(Cookie cookie : cookies) {
sessionid = cookie.getValue(); if(cookie.getName().equals(UserTokenService.LOGINID_COOKIE_NAME)) {
sessionid = cookie.getValue();
}
} }
} }
if(sessionid != null && tokenService.isLoginByToken(sessionid)) { if(sessionid != null && tokenService.isLoginByToken(sessionid)) {
......
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