2FA First login loop
Hi, Setting the parameter: COMPLIANCE_ENFORCE_2FA, as expected at the first login the user is redirect to the page enforce-two-fa.html, you can set up your 2fa code, but when you click on "Logout" you are not really logout and you land again in this page without possibility to log out properly.
To solve this, you need to clean up your "Local storage" of the browser and you are finally redirect to the index page re-creating the correct flow.
Step by step
Creating the new 2FA... everything perfect:
but clicking Logout you re-land again on this page (also refreshing the page or trying to edit the url removing enforce-two-fa.html)
and clicking on "Configure" button you can see that the 2FA is regularly set: