diff --git a/src/main/java/cokr/xit/base/security/authentication/web/AuthenticationSuccess.java b/src/main/java/cokr/xit/base/security/authentication/web/AuthenticationSuccess.java
index 617b078..6701d7b 100644
--- a/src/main/java/cokr/xit/base/security/authentication/web/AuthenticationSuccess.java
+++ b/src/main/java/cokr/xit/base/security/authentication/web/AuthenticationSuccess.java
@@ -30,17 +30,16 @@ public class AuthenticationSuccess extends SavedRequestAwareAuthenticationSucces
@Resource(name="objectMapper")
private ObjectMapper objectMapper;
- private boolean rememberCredentials;
-
- /**로그인 정보 유지 여부를 설정한다.
+ /**private boolean rememberCredentials;
+ * 로그인 정보 유지 여부를 설정한다.
* @param remember 로그인 정보 유지 여부
*
- 로그인 정보를 유지하려면 true
* - 그렇지 않으면 false
*
- */
public void setRememberCredentials(boolean remember) {
this.rememberCredentials = remember;
}
+ */
/**사용자 인증 서비스 인터페이스를 반환한다.
* @return 사용자 인증 서비스 인터페이스
@@ -84,8 +83,10 @@ public class AuthenticationSuccess extends SavedRequestAwareAuthenticationSucces
}
private void remember(UserInfo user, HttpServletRequest hreq, HttpServletResponse hresp) {
- boolean remember = rememberCredentials && "true".equals(hreq.getParameter("remember"));
+ boolean remember = "true".equals(hreq.getParameter("rememberCredentials"));
+// boolean remember = rememberCredentials && "true".equals(hreq.getParameter("remember"));
addCookie(hresp, remember, "userAccount", user.getAccount());
+ addCookie(hresp, remember, "userInstitute", user.getInstitute());
}
private void addCookie(HttpServletResponse hresp, boolean remember, String name, String value) {