|
|
@ -78,7 +78,7 @@ public class AuthenticationSuccess extends SavedRequestAwareAuthenticationSucces
|
|
|
|
private void remember(UserInfo user, HttpServletRequest hreq, HttpServletResponse hresp) {
|
|
|
|
private void remember(UserInfo user, HttpServletRequest hreq, HttpServletResponse hresp) {
|
|
|
|
boolean remember = "true".equals(hreq.getParameter("rememberCredentials"));
|
|
|
|
boolean remember = "true".equals(hreq.getParameter("rememberCredentials"));
|
|
|
|
addCookie(hresp, remember, "userAccount", user.getAccount());
|
|
|
|
addCookie(hresp, remember, "userAccount", user.getAccount());
|
|
|
|
addCookie(hresp, remember, "userInstitute", user.getInstitute());
|
|
|
|
addCookie(hresp, remember, "userOrg", user.getOrgID());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private void addCookie(HttpServletResponse hresp, boolean remember, String name, String value) {
|
|
|
|
private void addCookie(HttpServletResponse hresp, boolean remember, String name, String value) {
|
|
|
|