gitea/routers/api/v1
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
..
activitypub Fix context usages (#35348) 2025-08-27 11:00:01 +07:00
admin Fix edit user email bug in API (#36068) (#36081) 2025-12-04 18:25:52 +07:00
misc enforce explanation for necessary nolints and fix bugs (#34883) 2025-06-27 21:48:03 +07:00
notify Refactor error system (#33610) 2025-02-16 22:13:17 +07:00
org Fix updating user visibility (#35036) 2025-07-10 16:17:28 +07:00
packages Add package version api endpoints (#34173) 2025-04-13 20:00:44 +07:00
repo Fix various permission & login related bugs (#36002) (#36004) 2025-11-22 12:33:48 +07:00
settings Add API endpoint to request contents of multiple files simultaniously (#34139) 2025-04-22 01:20:11 +07:00
shared Add workflow_run api + webhook (#33964) 2025-06-20 20:14:00 +07:00
swagger Fix diffpatch API endpoint (#35610) (#35613) 2025-10-10 03:28:40 +07:00
user Add a `login`/`login-name`/`username` disambiguation to affected endpoint parameters and response/request models (#34901) 2025-06-29 21:17:45 +07:00
utils Add workflow_run api + webhook (#33964) 2025-06-20 20:14:00 +07:00
api.go Fix various permission & login related bugs (#36002) (#36004) 2025-11-22 12:33:48 +07:00