Affects Version/s: 6.0.12 EE, Master
Component/s: Application Security > Auto Login
If you create a loginPostAction and retrieve the user from the request using the API
User user = PortalUtil.getUser(request);
The object is outdated, you can test it because the attributes user.getLastLoginDate() and user.getLoginDate() have the old values.
This is an error because you can use this object and add logic based on this dates.
Steps to reproduce:
- Deploy attached module (blade.lifecycle.loginpostaction-1.0.0.jar) that implements a login.events.post
- Login into the portal
Current behaviour Take a look at the log file and you will see a similar information like this:
Expected behaviour Login date and last login date is the same for user in DB and user in Request just something like this: