1
1
mirror of https://github.com/go-gitea/gitea.git synced 2026-03-17 18:55:24 +01:00
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 +00:00
..
action.go Add workflow_run api + webhook (#33964) 2025-06-20 20:14:00 +08:00
adopt.go
cron.go
email.go
hooks.go enable staticcheck QFxxxx rules (#34064) 2025-03-29 17:32:28 -04: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 +00: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
user.go Fix edit user email bug in API (#36068) (#36081) 2025-12-04 18:25:52 +00:00