From b2a964031f757b5a7e3e25d7252467116681438e Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Fri, 4 Dec 2026 08:05:23 +0000 Subject: [PATCH] enhance(admin): explain that editing a user's email replaces the primary address (#40643) Clarifies what saving a changed email on the admin user edit page does: it replaces the primary address and keeps the user's other addresses. Before: ![before](https://raw.githubusercontent.com/lunny/gitea/pr-assets-admin-email/email-before.png) After: ![after](https://raw.githubusercontent.com/lunny/gitea/pr-assets-admin-email/email-after.png) Assisted-by: Codet:Claude --- options/locale/locale_en-US.json | 1 + templates/admin/user/edit.tmpl | 1 + 2 files changed, 2 insertions(+) diff --git a/options/locale/locale_en-US.json b/options/locale/locale_en-US.json index aa6b9e19b2a..6edb5b8d1b9 100644 --- a/options/locale/locale_en-US.json +++ b/options/locale/locale_en-US.json @@ -3195,6 +3195,7 @@ "admin.users.auth_source": "Authentication Source", "admin.users.local": "Local", "admin.users.auth_login_name": "Authentication Sign-In Name", + "admin.users.email_helper": "Changing the email address replaces the current primary email address. The other email addresses of this user are kept.", "admin.users.password_helper": "Leave the password empty to keep it unchanged.", "admin.users.update_profile_success": "The user account has been updated.", "admin.users.edit_account": "Edit User Account", diff --git a/templates/admin/user/edit.tmpl b/templates/admin/user/edit.tmpl index 7dfc97f51ba..23db520aeda 100644 --- a/templates/admin/user/edit.tmpl +++ b/templates/admin/user/edit.tmpl @@ -78,6 +78,7 @@
+

{{ctx.Locale.Tr "admin.users.email_helper"}}

{{if not .User.IsTypeBot}}