gitea/services/user
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
..
avatar.go Use db.WithTx/WithTx2 instead of TxContext when possible (#35130) 2025-07-22 10:02:01 +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) (#36081) 2025-12-04 18:25:52 +07:00
email_test.go Fix edit user email bug in API (#36068) (#36081) 2025-12-04 18:25:52 +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 Use db.WithTx/WithTx2 instead of TxContext when possible (#35428) 2025-09-10 03:15:01 +07:00
user_test.go Remove incorrect "db.DefaultContext" usages (#35366) 2025-08-28 03:52:43 +07:00