gitea/routers/web/admin
Giteabot 45cdc5d8fd
Some checks failed
release-nightly / nightly-binary (push) Has been cancelled
release-nightly / nightly-docker-rootful (push) Has been cancelled
release-nightly / nightly-docker-rootless (push) Has been cancelled
Fix bug when updating user email (#36058) (#36066)
Backport #36058 by @lunny

Fix #20390 

We should use `ReplacePrimaryEmailAddress` instead of
`AdminAddOrSetPrimaryEmailAddress` when modify user's email from admin
panel. And also we need a database transaction to keep deletion and
insertion succeed at the same time.

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
2025-12-02 02:57:21 +01:00
..
admin_test.go Make public URL generation configurable (#34250) 2025-04-22 06:49:37 +08:00
admin.go Support performance trace (#32973) 2025-01-21 18:57:07 +00:00
applications.go Enable addtional linters (#34085) 2025-04-01 10:14:01 +00:00
auths.go Fix context usages (#35348) 2025-08-27 11:00:01 +00:00
config.go split admin config settings templates to make it maintain easier (#35294) 2025-09-04 15:42:26 +00:00
diagnosis.go Run gopls modernize on codebase (#34751) 2025-06-18 01:48:09 +00:00
emails.go Refactor error system (#33610) 2025-02-16 22:13:17 -08:00
hooks.go Refactor template & test related code (#32938) 2024-12-22 15:33:19 +00:00
main_test.go
notice.go Run gopls modernize on codebase (#34751) 2025-06-18 01:48:09 +00:00
orgs.go Do not mutate incoming options to RenderUserSearch and SearchUsers (#34544) 2025-05-27 19:36:02 +00:00
packages.go Run gopls modernize on codebase (#34751) 2025-06-18 01:48:09 +00:00
perftrace.go Support performance trace (#32973) 2025-01-21 18:57:07 +00:00
queue_tester.go
queue.go Move admin routers from /admin to /-/admin (#32189) 2024-10-10 04:56:49 +00:00
repos.go Refactor pagination (#33037) 2024-12-30 01:57:38 +00:00
runners.go Move admin routers from /admin to /-/admin (#32189) 2024-10-10 04:56:49 +00:00
stacktrace.go Support performance trace (#32973) 2025-01-21 18:57:07 +00:00
users_test.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
users.go Fix bug when updating user email (#36058) (#36066) 2025-12-02 02:57:21 +01:00