Commit f043588f authored by Quxl's avatar Quxl

x

parent fe0d6beb
......@@ -26,9 +26,11 @@ public class AdminLoginInterceptor extends HandlerInterceptorAdapter {
} else {
String sessionid = null;
Cookie[] cookies = req.getCookies();
for(Cookie cookie : cookies) {
if(cookie.getName().equals(TokenService.JSESSIONID)) {
sessionid = cookie.getValue();
if(cookies != null) {
for(Cookie cookie : cookies) {
if(cookie.getName().equals(TokenService.JSESSIONID)) {
sessionid = cookie.getValue();
}
}
}
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