Skip to content

Commit

Permalink
Merge pull request #478 from support-project/feature/issue477_login_c…
Browse files Browse the repository at this point in the history
…ookie

#477 Change a process for create a login cookie
  • Loading branch information
koda-masaru authored Oct 4, 2016
2 parents 6372a09 + c8d482e commit 9fd8390
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import javax.servlet.http.HttpServletResponse;

import org.support.project.common.util.StringUtils;
import org.support.project.di.Container;
import org.support.project.knowledge.config.AppConfig;
import org.support.project.knowledge.config.SystemConfig;
import org.support.project.knowledge.logic.SystemConfigLogic;
Expand All @@ -21,6 +22,8 @@
import org.support.project.web.dao.SystemConfigsDao;
import org.support.project.web.entity.SystemConfigsEntity;
import org.support.project.web.filter.AuthenticationFilter;
import org.support.project.web.logic.AuthenticationLogic;
import org.support.project.web.logic.impl.DefaultAuthenticationLogicImpl;

public class CloseAbleAuthenticationFilter extends AuthenticationFilter {

Expand Down Expand Up @@ -61,7 +64,8 @@ public void doFilter(ServletRequest servletrequest, ServletResponse servletrespo
HttpServletResponse res = (HttpServletResponse) servletresponse;
try {
if (!isLogin(req)) {
cookieLogin(req, res);
AuthenticationLogic logic = Container.getComp(DefaultAuthenticationLogicImpl.class);
logic.cookieLogin(req, res);
}

if (!isLogin(req)) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<p><a href="https://support-project.org/knowledge/index" target="_blank" rel="nofollow">https://support-project.org/knowledge/index</a></p>
<p><a href="https://support-project.org/knowledge/index" target="_blank" rel="nofollow noopener noreferrer">https://support-project.org/knowledge/index</a></p>

0 comments on commit 9fd8390

Please sign in to comment.