After hours of searching for a sollution I hope someone sees my problem. I want to log the timestamp of a user logging in into the site. I have 2 site views: public and member.
When a user logs in, a login action is fired. I came to the conclusion this was the best way to track the timestamp.
The flow is as follows:
- Select the user from database using the unique username
- Bind the found user id to the UserUpdate user.oid
- User the current/input timestamp to bind to the UserUpdate
- Use the standard login with the username/password/remember so the correct siteview is opened based on the default group
The problem is that for some reason, nothing is saved to the database. But the login still happens without any problems. Any idea why this is and how to fix it?
Any other idea on how to track the users login timestamp is also welcome. Other possible sollutions I could think of don't work because I don't have any real entry point when the login unit uses the default group to load the default page from the site view. The database opperation requires a navigation flow which I can't launch automaticly.
Any help is greatly appreciated!!