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