modrinth / labrinth

Our Rust-based backend utilizing the actix-web framework to serve Modrinth's API.
https://modrinth.com
GNU Affero General Public License v3.0
509 stars 73 forks source link

Ability to re-issue backup codes #911

Open brawaru opened 1 month ago

brawaru commented 1 month ago

Is your suggested enhancement related to a problem? Please describe.

There can be a situation where you lose access to your authenticator and cannot find your backup codes, but still have access to the account. There should be a way to issue new backup codes that replace the previous ones.

Describe the solution you'd like

A 2FA endpoint for Knossos integration that would allow to re-issue the backup codes. The endpoint can require going to the flow akin to what Discord has, for example, where you have to enter the password, and then also enter the code from the e-mail.

Describe alternatives you've considered

Additional context

ICOM-2634