|
|
@ -67,8 +67,7 @@ public class AuthenticationSuccess extends SavedRequestAwareAuthenticationSucces
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
protected DataObject onSuccess(HttpServletRequest hreq, HttpServletResponse hresp, Authentication authentication) {
|
|
|
|
protected DataObject onSuccess(HttpServletRequest hreq, HttpServletResponse hresp, Authentication authentication) {
|
|
|
|
Object principal = authentication.getPrincipal();
|
|
|
|
Object principal = authentication.getPrincipal();
|
|
|
|
if (principal instanceof UserInfo) {
|
|
|
|
if (principal instanceof UserInfo user) {
|
|
|
|
UserInfo user = (UserInfo)principal;
|
|
|
|
|
|
|
|
user.setInfo("loggedInAt", new Date());
|
|
|
|
user.setInfo("loggedInAt", new Date());
|
|
|
|
remember(user, hreq, hresp);
|
|
|
|
remember(user, hreq, hresp);
|
|
|
|
}
|
|
|
|
}
|
|
|
|