2FA how to use. If I enable 2FA for a user, then immediately upon the user's first login they are required to provide 2FA, but at that moment 2FA has not yet been created. Accordingly, after enabling 2FA, the user simply cannot log into the control panel at all. Please explain how this works or provide a link to where there is an answer to this question. Thank you.
When you enable 2FA for a user, the system immediately expects the user to provide a valid authentication code the next time they log in. However, since the user has not yet set up 2FA (i.e. they have not scanned the QR code or received the secret key to authenticate), they are locked out of the dashboard. The system does not allow the user to log in without entering the 2FA code, but they have not generated the code, resulting in an immediate access issue.