gitea/routers/api/v1/admin
Giteabot 52902d4ece
Fix edit user email bug in API (#36068) (#36081)
Backport #36068 by @lunny

Follow #36058 for API edit user bug when editing email.

- The Admin Edit User API includes a breaking change. Previously, when
updating a user with an email from an unallowed domain, the request
would succeed but return a warning in the response headers. Now, the
request will fail and return an error in the response body instead.
- Removed `AdminAddOrSetPrimaryEmailAddress` because it will not be used
any where.

Fix https://github.com/go-gitea/gitea/pull/36058#issuecomment-3600005186

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
2025-12-04 18:25:52 +07:00
..
action.go Add workflow_run api + webhook (#33964) 2025-06-20 20:14:00 +07:00
adopt.go Refactor error system (#33610) 2025-02-16 22:13:17 +07:00
cron.go Refactor error system (#33610) 2025-02-16 22:13:17 +07:00
email.go Refactor error system (#33626) 2025-02-17 12:41:03 +07:00
hooks.go enable staticcheck QFxxxx rules (#34064) 2025-03-29 17:32:28 +07:00
org.go Add a `login`/`login-name`/`username` disambiguation to affected endpoint parameters and response/request models (#34901) 2025-06-29 21:17:45 +07:00
repo.go Add a `login`/`login-name`/`username` disambiguation to affected endpoint parameters and response/request models (#34901) 2025-06-29 21:17:45 +07:00
runners.go Actions Runner rest api (#33873) 2025-04-18 15:22:41 +07:00
user.go Fix edit user email bug in API (#36068) (#36081) 2025-12-04 18:25:52 +07:00
user_badge.go Add a `login`/`login-name`/`username` disambiguation to affected endpoint parameters and response/request models (#34901) 2025-06-29 21:17:45 +07:00