[GH-ISSUE #172] Inalid email or password #85

Closed
opened 2026-02-27 15:55:02 +03:00 by kerem · 2 comments
Owner

Originally created by @groke76 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?

Originally created by @groke76 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?
kerem closed this issue 2026-02-27 15:55:03 +03:00
Author
Owner

@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.

<!-- 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.
Author
Owner

@arunavo4 commented on GitHub (Feb 24, 2026):

Resolved by #178 (admin CLI password reset flow + README docs).

<!-- gh-comment-id:3948887831 --> @arunavo4 commented on GitHub (Feb 24, 2026): Resolved by #178 (admin CLI password reset flow + README docs).
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/gitea-mirror#85
No description provided.