Currently, the frontend only provides a toggle in the settings to enable/disable 2FA. However, enabling 2FA does not affect the login flow yet.
The required backend functionality should already be available, so this task is focused on implementing the missing frontend logic and integrating the 2FA flow into the authentication process.

Currently, the frontend only provides a toggle in the settings to enable/disable 2FA. However, enabling 2FA does not affect the login flow yet.
The required backend functionality should already be available, so this task is focused on implementing the missing frontend logic and integrating the 2FA flow into the authentication process.