Microflow:
Call Java Action:
Java Action Source:
Navigation
Hi Carlos,
Have you seen the login form widget? You can just place the widget on your anonymous home page and it handles everything.
https://appstore.home.mendix.com/link/app/87/Mendix/Login-form
Another option would to use the default authentication widgets.
https://docs.mendix.com/refguide/authentication-widgets