Inalid email or password #86

Closed
opened 2026-10-05 01:40:43 +02:00 by adam · 2 comments
Owner

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?

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? <!-- github-sync-id:3896371455 -->
adam closed this issue 2026-10-05 01:40:43 +02:00
Author
Owner

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.

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. <!-- github-comment-id:3948876548 -->
Author
Owner

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

Resolved by #178 (admin CLI password reset flow + README docs). <!-- github-comment-id:3948887831 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/gitea-mirror#86