gitea/routers
Lunny Xiao e30a130b9a
Some checks are pending
release-nightly / nightly-binary (push) Waiting to run
release-nightly / nightly-container (push) Waiting to run
Fix edit user email bug in API (#36068)
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: Giteabot <teabot@gitea.io>
2025-12-04 09:05:13 +01:00
..
api Fix edit user email bug in API (#36068) 2025-12-04 09:05:13 +01:00
common Fix oauth2 session gob register (#36017) 2025-11-26 23:25:34 +08:00
install Fix oauth2 session gob register (#36017) 2025-11-26 23:25:34 +08:00
private Use git model to detect whether branch exist instead of gitrepo method (#35459) 2025-10-25 10:08:25 -07:00
utils Refactor older tests to use testify (#33140) 2025-01-09 09:21:47 +08:00
web Fix bug when updating user email (#36058) 2025-12-01 23:50:10 +00:00
init.go Use global lock instead of status pool for cron lock (#35507) 2025-09-27 10:11:52 -07:00