diff --git a/routers/web/admin/users.go b/routers/web/admin/users.go index b93668c5a2..3dcf0d2aa8 100644 --- a/routers/web/admin/users.go +++ b/routers/web/admin/users.go @@ -435,6 +435,7 @@ func EditUserPost(ctx *context.Context) { FullName: optional.Some(form.FullName), Website: optional.Some(form.Website), Location: optional.Some(form.Location), + Pronouns: optional.Some(form.Pronouns), IsActive: optional.Some(form.Active), IsAdmin: optional.Some(form.Admin), AllowGitHook: optional.Some(form.AllowGitHook), diff --git a/services/forms/admin.go b/services/forms/admin.go index 81276f8f46..7d46904440 100644 --- a/services/forms/admin.go +++ b/services/forms/admin.go @@ -42,6 +42,7 @@ type AdminEditUserForm struct { Website string `binding:"ValidUrl;MaxSize(255)"` Location string `binding:"MaxSize(50)"` Language string `binding:"MaxSize(5)"` + Pronouns string `binding:"MaxSize(50)"` MaxRepoCreation int Active bool Admin bool diff --git a/templates/admin/user/edit.tmpl b/templates/admin/user/edit.tmpl index 41b00defb4..8203a2a076 100644 --- a/templates/admin/user/edit.tmpl +++ b/templates/admin/user/edit.tmpl @@ -61,6 +61,10 @@ +