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
This commit is contained in:
Lunny Xiao authored and GitHub committed 2026-12-04 08:05:23 +00:00
1 parent 03eb1f8221
commit b2a964031f
2 files changed
+2

No files matched your search

+1
View File
@@ -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",
+1
View File
@@ -78,6 +78,7 @@
<div class="required field">
<label for="email">{{ctx.Locale.Tr "email"}}</label>
<input id="email" name="email" type="email" value="{{.User.Email}}" required>
<p class="help">{{ctx.Locale.Tr "admin.users.email_helper"}}</p>
</div>
{{if not .User.IsTypeBot}}
<div class="js-local js-non-bot field {{if not (or .User.IsLocal .User.IsOAuth2)}}tw-hidden{{end}}">