bug: MFA and oneTimeToken
bug
### Describe the bug
When using one time token login option and having mfa turned on, user is prompted to setup MFA.
Screen for MFA setup display link back, clicking it results with error gui: invalid link
with response from experience api:
{
"code": "one_time_token.token_consumed",
"message": "The token has been consumed."
}
### Expected behavior
In this scenario:
1) Either there shoudn't be BACK displayed at all
or
2) new feature: allowing to disable MFA setup when using magic link
### How to reproduce?
1. MFA should be turned on
2. generete magic link (assuming FE handles it)
3. use it
3. when prompted to setup MFA, click BACK
### Environment
Self-hosted (Docker image)
### Screenshots
_No response_
0 条评论