refactor(api): convert bot accounts through the admin user edit endpoint (#39355)

Follow-up to https://github.com/go-gitea/gitea/pull/38966. Replaces the
unreleased `POST /admin/users/{username}/convert-type` endpoint with a
`type` field on `PATCH /admin/users/{username}`.
This commit is contained in:
silverwind
2026-09-18 17:11:56 +02:00
committed by GitHub
parent 3bec08f998
commit 85eaf5c71c
12 changed files with 57 additions and 203 deletions
+1 -1
View File
@@ -17,7 +17,7 @@ type User struct {
ID int64 `json:"id"`
// login of the user, same as `username`
UserName string `json:"login"`
// the account type
// the user type
Type UserTypeString `json:"type"`
// identifier of the user, provided by the external authenticator (if configured)
LoginName string `json:"login_name"`