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/totp reset after recovery code validation #445

Open
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

scaletech-milan
Copy link
Contributor

What does this PR do?

It will reset the TOTP secret and update the recovery codes in the database.
After that user will be redirected to scanner image and the same old TOTP flow will continue until all recovery codes have been used.

Which issue(s) does this PR fix?

Resolve #442

If this PR affects any API reference documentation, please share the updated endpoint references

NA

anand-panigrahi and others added 10 commits November 24, 2023 13:52
* removed fmt.Println
- Introduce TOTP reset logic and redirect to scanner image
- Function for Update TOTP info into db
- Add string parser helper function
- Add function for parse refrence string array
- Change the response of update totp info function
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.

Enhancement: TOTP Reset After Recovery Code Validation
2 participants