In the project I’m working on, we use Universal Login with a custom template for the login page using Lock.js. To disable or enable users in our app, we use the ManagementClient API to set the user’s blocked
status to true
or false
as needed. The problem is that when blocked users attempt to log in, they are not shown any error message; instead, the login button spinner enters an infinite loop. I have tried adding lock.on('authorization_error', function (error) {})
without success, and also added a post-login action, but it didn’t catch the error either. Is redirecting users to an error page the only way to handle this error, or is there another method to capture the error on the same login page? Thank you in advance.