How to log every login attempt in Mendix (successful or not)?
0
Hi, I am developing an application in Mendix, and I want to record each time a user tries to log in, along with whether the login was successful or not. To achieve this, I have created an entity called LoginLog, where I want to store the username, the date, and whether the login was successful each time someone clicks the "Log In" button. The Authentication widget’s login button does not allow me to call a microflow, so I cannot register the attempt using that option. Another approach I tried was using the Sign in action in a nanoflow, but if that action works successfully, it skips everything that comes after it in the nanoflow. Does anyone know how I can achieve this? Thanks, Mikel Castro
asked
Mikel Castro
1 answers
0
Hello ;)
I guess you can achieve the desired result by using the System.User (LastLogin, FailedLogins, for example). Especially if you add on top the audit trail module. By using this you can see the history of what happened with a specific user.