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

Restoring access #53

Closed
InQuize opened this issue Sep 1, 2016 · 5 comments
Closed

Restoring access #53

InQuize opened this issue Sep 1, 2016 · 5 comments
Labels

Comments

@InQuize
Copy link

InQuize commented Sep 1, 2016

How would one manually restore access to an admin account protected by lost TOTP app? (In theory)
In other words: where is the "on/off switch" for twofactor_totp for a particular account in the NextCloud backend?

@InQuize
Copy link
Author

InQuize commented Sep 1, 2016

The way I found is to delete entry for that user in oc_twofactor_totp_secrets table in nextcloud database.
Is that ok or am I missing something and there is a more graceful way?

@InQuize
Copy link
Author

InQuize commented Sep 1, 2016

@InQuize InQuize closed this as completed Sep 1, 2016
@ChristophWurst
Copy link
Member

Hi,

exactly. Either you use the occ command, or you use an alternative factor. In case you've upgraded to Nextcloud, there will be an option to generate backup codes soon. See nextcloud/server#1171

@ChristophWurst
Copy link
Member

The way I found is to delete entry for that user in oc_twofactor_totp_secrets table in nextcloud database.
Is that ok or am I missing something and there is a more graceful way?

Hacky, but that should fix it. Note that there's a bug in ownCloud that will cause an infinite redirect loop, hence you are caught in the login process and have to manually clear the session cookies.

@InQuize
Copy link
Author

InQuize commented Sep 1, 2016

Note that there's a bug in ownCloud that will cause an infinite redirect loop, hence you are caught in the login process and have to manually clear the session cookies.

Yes, I encountered that, but it was very easy to fix by deleting cookies for nextcloud domain in chrome://settings/cookies

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants