private void performAdjustCookies ( HttpServletRequest request , HttpServletResponse response ) throws Exception { boolean loggedIn = false ; User user = null ; try { Cookie cookie = getCookieFromRequest ( request ) ; if ( null != cookie ) { user = CookieAuthentication . verifyCookieString ( userRepository , cookie . getValue ( ) ) ; loggedIn = true ; } } catch ( Exception e ) { // Ignore } if ( null == user ) { user = userRepository . getDefaultUser ( ) ; } acceptRequest ( response , loggedIn , user ) ; }
Adjusts the information cookie based on the authentication token