A user has lost their authenticator app, their passkey device, or their phone and can no longer complete MFA. HitKeep now supports three recovery paths, depending on what access remains available.
Choose the Right Recovery Path
Choose the Right Recovery Path1. User still knows their password and has recovery codes
1. User still knows their password and has recovery codesThis is the preferred self-service path.
- Go to the normal login page.
- Enter the account email address and password.
- On the MFA screen, choose Use recovery code.
- Enter one unused recovery code.
Each recovery code can be used once. After login, generate a new set under Settings → Security if the old set may be exposed or mostly consumed.
2. Another instance owner can still sign in
2. Another instance owner can still sign inThis is the preferred operator path for shared instances and cloud deployments.
- Sign in as an instance owner.
- Open Administration → Users.
- Find the locked-out user.
- Use Disable MFA.
This owner-only action removes TOTP, passkeys, active recovery codes, and remember-me sessions for the target account. The user can then log in again with email and password and re-enroll MFA.
3. No owner can sign in
3. No owner can sign inThis is the break-glass path. Use the offline recover disable-2fa CLI command directly against the HitKeep database.
The --db flag defaults to hitkeep.db in the working directory. Pass it explicitly if your database lives elsewhere (e.g. /var/lib/hitkeep/data/hitkeep.db).
Offline Recovery Steps
Offline Recovery Stepssudo systemctl stop hitkeepThen run the recovery command and restart:
hitkeep recover disable-2fa \ --email locked-user@example.com \ --db /var/lib/hitkeep/data/hitkeep.db
sudo systemctl start hitkeepStop the running container, then spin up a temporary container with the same image and data volume to run the recovery command, then restart normally:
# 1. Stop the running containerdocker stop hitkeep
# 2. Run recovery in a temporary container against the same volumedocker run --rm \-v hitkeep-data:/var/lib/hitkeep/data \ghcr.io/hitkeep/hitkeep:2.19.0 \recover disable-2fa \ --email locked-user@example.com \ --db /var/lib/hitkeep/data/hitkeep.db
# 3. Start the container againdocker start hitkeepWith Docker Compose:
docker compose stop hitkeep
docker compose run --rm hitkeep \ recover disable-2fa \ --email locked-user@example.com \ --db /var/lib/hitkeep/data/hitkeep.db
docker compose start hitkeeppkill hitkeep
hitkeep recover disable-2fa \ --email locked-user@example.com \ --db /path/to/hitkeep.db
hitkeep -db /path/to/hitkeep.dbAfter Recovery
After RecoveryAdvise the user to:
- Log in with their existing password.
- Generate a fresh set of recovery codes under Settings → Security.
- Re-enroll TOTP or passkeys under Settings → Security.
- If their password may also be compromised, change it under Settings → Security → Change Password.
Operational Guidance
Operational Guidance- Use recovery codes for owner self-recovery.
- Keep at least two instance owners on production deployments.
- Treat the offline CLI as break-glass only.
- The offline
recover disable-2facommand clears TOTP, passkeys, active recovery codes, and remember-me sessions.
Related
RelatedNeed a self-service account recovery flow with identity verification? HitKeep Cloud → includes automated, audited recovery workflows.