How to edit/disable mx.login javascript

Hi all, we're currently facing a challenge where we implemented MFA in an application.  User has to fill in username, password, Google auth. This is checked in the login microflow we created and a session is created if all is valid. However this can be bypassed by using the mx.login javascript action (which only validates username and password). I found the action in the mxui.js (inside the but can't seem to edit and have mendix compile it into the deployment directory. Does anyone have any experience changing this?
1 answers

Found this post, with some adjustments I managed to get it working