How can I create two steps login action (with another form for 2FA code)?
I created LoginAction listener and my custom login action where I want to navigate to another 2FA form if user has 2FA enabled. I was trying to call microflow with ShowPage action inside my custom login action code, however it just shows “Login failed” message and doesn’t redirect to the page. I put breakpoint in the microflow with ShowPage for 2FA and it is called in the background.
Try the MFA module! It is available in the marketplace.
In addition to Axel. Indeed! An important reason is security, because by default after correct login the user gets his role and permissions just before checking the 2FA. That’s why it’s needed to use a safe solution like the the 2FA module Axel mentioned.