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

Error when trying to activate two factor authentication #6145

Open
zero-thermo opened this issue May 16, 2022 · 3 comments
Open

Error when trying to activate two factor authentication #6145

zero-thermo opened this issue May 16, 2022 · 3 comments

Comments

@zero-thermo
Copy link

Settings >> Security >> Enable Two Factor authentication results in red "Error when trying to activate two factor authentication" message in bottom right corner.

Self-hosted Monica v3.7.0 via docker-compose

Occurs after I reset google_2fa to fix "MAC is invalid" errors per #5235.

.env. file correctly matches DB_HOST to Monica db container name. Logs don't show any obvious errors and APP_DEBUG=true does not display any additional information when errors occurs.

What else can I try to fix my Monica instance and correctly enable 2FA?

@zero-thermo
Copy link
Author

I tried enabling 2FA using Chrome browser and it worked. Seems like the issue might be related to Firefox, which always results in the above error.

@particleflux
Copy link

I don't think this is a bug - since you manually edited the DB to "disable" MFA.

Deactivating and reactivating works fine via UI (tested in firefox 91)

@particleflux
Copy link

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

No branches or pull requests

2 participants