gitea/services/user
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
..
avatar.go Fix avatar upload error handling (#35887) 2025-11-07 09:44:09 +08:00
block_test.go Remove incorrect "db.DefaultContext" usages (#35366) 2025-08-28 03:52:43 +00:00
block.go Refactor repository transfer (#33211) 2025-01-30 05:40:44 +00:00
delete.go
email_test.go Fix edit user email bug in API (#36068) 2025-12-04 09:05:13 +01:00
email.go Fix edit user email bug in API (#36068) 2025-12-04 09:05:13 +01:00
update_test.go Remove incorrect "db.DefaultContext" usages (#35366) 2025-08-28 03:52:43 +00:00
update.go enforce nolint scope (#34851) 2025-06-27 07:59:55 +02:00
user_test.go Allow admins to rename non-local users (#35970) 2025-11-23 20:59:55 +00:00
user.go Allow admins to rename non-local users (#35970) 2025-11-23 20:59:55 +00:00