Hi, after using gitea-mirror for a couple of months, I can no longer log in, I get "invalid email or password". I have checked the logs, checked the Gtea token is correct, recreated gitea token, but I still get "invalid email or password, please contact administrator", but I am the administrator. And I cannot see any places to create a new gitea-mirror user or reset the user anywhere.
Is this a bug on new version or something?
Originally created by @Ratasan64 on GitHub (Feb 4, 2026).
Original GitHub issue: https://github.com/RayLabsHQ/gitea-mirror/issues/172
Hi, after using gitea-mirror for a couple of months, I can no longer log in, I get "invalid email or password". I have checked the logs, checked the Gtea token is correct, recreated gitea token, but I still get "invalid email or password, please contact administrator", but I am the administrator. And I cannot see any places to create a new gitea-mirror user or reset the user anywhere.
Is this a bug on new version or something?
bun run reset-password -- --email=user@example.com --new-password='new-secure-password'
Uses Better Auth-compatible password hashing
Upserts credential account if missing
Invalidates existing sessions for that user after reset
This gives a non-destructive recovery path when an admin gets locked out and email reset is not configured.
<!-- gh-comment-id:3948876548 -->
@arunavo4 commented on GitHub (Feb 24, 2026):
Added a proper admin recovery flow in PR #178.
What it adds:
- `bun run reset-password -- --email=user@example.com --new-password='new-secure-password'`
- Uses Better Auth-compatible password hashing
- Upserts credential account if missing
- Invalidates existing sessions for that user after reset
This gives a non-destructive recovery path when an admin gets locked out and email reset is not configured.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Originally created by @Ratasan64 on GitHub (Feb 4, 2026).
Original GitHub issue: https://github.com/RayLabsHQ/gitea-mirror/issues/172
Hi, after using gitea-mirror for a couple of months, I can no longer log in, I get "invalid email or password". I have checked the logs, checked the Gtea token is correct, recreated gitea token, but I still get "invalid email or password, please contact administrator", but I am the administrator. And I cannot see any places to create a new gitea-mirror user or reset the user anywhere.
Is this a bug on new version or something?
@arunavo4 commented on GitHub (Feb 24, 2026):
Added a proper admin recovery flow in PR #178.
What it adds:
bun run reset-password -- --email=user@example.com --new-password='new-secure-password'This gives a non-destructive recovery path when an admin gets locked out and email reset is not configured.
@arunavo4 commented on GitHub (Feb 24, 2026):
Resolved by #178 (admin CLI password reset flow + README docs).