Livio Spring b9e351ab84
fix(login): make sure first email verification is done before MFA check (#9039)
# Which Problems Are Solved

During authentication in the login UI, there is a check if the user's
MFA is already checked or needs to be setup.
In cases where the user was just set up or especially, if the user was
just federated without a verified email address, this can lead to the
problem, where OTP Email cannot be setup as there's no verified email
address.

# How the Problems Are Solved

- Added a check if there's no verified email address on the user and
require a mail verification check before checking for MFA.
Note: that if the user had a verified email address, but changed it and
has not verified it, they will still be prompted with an MFA check
before the email verification. This is make sure, we don't break the
existing behavior and the user's authentication is properly checked.

# Additional Changes

None

# Additional Context

- closes https://github.com/zitadel/zitadel/issues/9035

(cherry picked from commit f20539ef8f4784ff59beea922a7b95ba1d6e0926)
2024-12-17 10:48:55 +01:00
..
2022-04-26 23:01:45 +00:00
2021-02-22 14:08:47 +01:00
2022-04-26 23:01:45 +00:00
2022-04-26 23:01:45 +00:00