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

How to reset twoFactor authentication ? #3180

Closed
RicardoHS opened this issue Mar 10, 2020 · 4 comments
Closed

How to reset twoFactor authentication ? #3180

RicardoHS opened this issue Mar 10, 2020 · 4 comments
Labels
stale No replies or comments. Will be auto-closed in 14 days.

Comments

@RicardoHS
Copy link

Following the instructions on #2228 does not work anymore.

I have done:
Log into my docker that contains the database (postgres in my case)

$ docker exect -it <container_id> bash

Log into the postgres shell (the database and user names can be found in the docker-compose file)

$ psql <database_name> <user_name>

Exect this line to remove the twoFactor configuration

$ delete from preferences where name like 'twoFactorAuth%'

Log into the app container and run to clear the cache

$ php artisan cache:clear

But the app continue to request the two Factor

@JC5
Copy link
Member

JC5 commented Mar 10, 2020

Indeed. Those instructions are out of date. I just realised that Firefly III itself also gives bad instructions.

Open table users and set mfa_secret to NULL for the user for who you want to disable 2FA.

@JC5 JC5 added the question label Mar 10, 2020
JC5 added a commit to firefly-iii/docs that referenced this issue Mar 10, 2020
JC5 added a commit that referenced this issue Mar 10, 2020
@RicardoHS
Copy link
Author

so just to clarify for others, in the psql shell just run

update users set mfa_secret = NULL;

@JC5
Copy link
Member

JC5 commented Mar 10, 2020

That will reset it for everybody though. If you're a single user, no worries.

@stale
Copy link

stale bot commented Mar 17, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale No replies or comments. Will be auto-closed in 14 days. label Mar 17, 2020
@stale stale bot closed this as completed Mar 24, 2020
@lock lock bot locked as resolved and limited conversation to collaborators Jun 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
stale No replies or comments. Will be auto-closed in 14 days.
Projects
None yet
Development

No branches or pull requests

2 participants