[GH-ISSUE #682] 2FA Support: reset user 2fa #492

Closed
opened 2026-02-25 23:42:39 +03:00 by kerem · 1 comment
Owner

Originally created by @louissegal on GitHub (Jul 30, 2022).
Original GitHub issue: https://github.com/healthchecks/healthchecks/issues/682

Is there scope to reset 2fa/disable 2fa from an already active user?
Somehow it's now telling me my 2fa codes are invalid

I've gone into the running container and with manage.py created a new superuser to login and get into admin console, but I don't see any way to remove 2fa from a user

Thanks

Edit: for some reason the 2fa is now not locked out, but being able to remove 2fa from the admin portal would still be a helpful feature.

Originally created by @louissegal on GitHub (Jul 30, 2022). Original GitHub issue: https://github.com/healthchecks/healthchecks/issues/682 Is there scope to reset 2fa/disable 2fa from an already active user? Somehow it's now telling me my 2fa codes are invalid I've gone into the running container and with manage.py created a new superuser to login and get into admin console, but I don't see any way to remove 2fa from a user Thanks Edit: for some reason the 2fa is now not locked out, but being able to remove 2fa from the admin portal would still be a helpful feature.
kerem closed this issue 2026-02-25 23:42:39 +03:00
Author
Owner

@cuu508 commented on GitHub (Aug 1, 2022):

The 2FA credentials are stored in the accounts_credential database table. Deleting rows from this table disables 2FA for the corresponding user(s). When you're logged in as a superuser, you can go to /admin/accounts/credential/ and delete the credentials from there, or you can run DELETE queries from the database shell.

<!-- gh-comment-id:1200918509 --> @cuu508 commented on GitHub (Aug 1, 2022): The 2FA credentials are stored in the `accounts_credential` database table. Deleting rows from this table disables 2FA for the corresponding user(s). When you're logged in as a superuser, you can go to `/admin/accounts/credential/` and delete the credentials from there, or you can run `DELETE` queries from the database shell.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/healthchecks#492
No description provided.