mirror of
https://github.com/RayLabsHQ/gitea-mirror.git
synced 2026-04-25 07:15:57 +03:00
[GH-ISSUE #164] How to reset password #79
Labels
No labels
bug
documentation
enhancement
help wanted
pull-request
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/gitea-mirror#79
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Bluscream on GitHub (Jan 12, 2026).
Original GitHub issue: https://github.com/RayLabsHQ/gitea-mirror/issues/164
When logging in and forgotten the password i see
Don't have an account? Contact your administrator.but i am the admin. i dont have access the docker internal fs tho.I accidentally used bogus login while installing because it was complaining about wrong origin (the server has 3 exposed ips .10,.11,.12 and i tried to use .12 but it only allowed from .10)
@Bluscream commented on GitHub (Jan 13, 2026):
@arunavo4 commented on GitHub (Jan 13, 2026):
Hi @Bluscream I realised I never added a proper reset password rather I just used to delete the user and recreate it again. casue its a backup anyway. But I will add a reset script. The one you dropped here has a few concerns.
Also, for that wrong origin you will need to add the ip where the container is running. Once I have some time in a week or so I will address this issue properly tho I have documented it the issue stems from the way better auth is configured.
@arunavo4 commented on GitHub (Feb 24, 2026):
Follow-up implemented in PR #178: added a built-in CLI admin password reset flow.
Command:
bun run reset-password -- --email=user@example.com --new-password='new-secure-password'Behavior:
Also documented in README under Admin Password Recovery (CLI).
@arunavo4 commented on GitHub (Feb 24, 2026):
Resolved by #178 (built-in CLI password reset command and documentation).