fix: hire-an-agent must use Forgejo CLI for password reset — API PATCH ignores must_change_password #206
Labels
No labels
action
backlog
blocked
bug-report
in-progress
prediction/actioned
prediction/dismissed
prediction/unreviewed
priority
tech-debt
underspecified
vision
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: disinto-admin/disinto#206
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?
Problem
hire-an-agentStep 3 (clone) still fails after the #200 fix because the Forgejo 11.x API PATCH endpoint ignoresmust_change_password: false. The password gets changed but themust_change_passwordflag stays set, blocking git clone over HTTP.The Forgejo CLI works correctly:
This is a known Forgejo 11.x behavior — the API PATCH ignores
must_change_passwordwhile the CLI respects it.Fix
In
disinto_hire_an_agent(), replace the API PATCH call for password reset with the Forgejo CLI approach (same pattern used insetup_forge()for admin/bot users):This uses
docker execinto the Forgejo container, which is already the pattern used elsewhere in the codebase (seesetup_forge()bot user creation).Files
bin/disinto—disinto_hire_an_agent(), Step 1 existing-user password reset branch