Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add 2FA type in authentication error message #19894

Merged
merged 2 commits into from
Feb 10, 2025
Merged

Conversation

netroms
Copy link
Contributor

@netroms netroms commented Feb 10, 2025

Summary

Implement a way to differentiate between TOTP 2FA and Email 2FA.
Currently, when you are logging in, and you are required to enter 2FA, the server will respond with INCORRECT_TWO_FACTOR_CODE. To make it possible for the FE to respond to the user if the user needs to check their email or use an authenticator app, we need to have two different response codes, one for each 2FA type.

The new response codes are:

  • INCORRECT_TWO_FACTOR_CODE_EMAIL
  • INCORRECT_TWO_FACTOR_CODE_TOTP

@netroms netroms merged commit ef1850f into master Feb 10, 2025
17 checks passed
@netroms netroms deleted the DHIS2-18915 branch February 10, 2025 14:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants