diff --git a/routers/web/admin/users.go b/routers/web/admin/users.go index 8aaa654a39..4b94fe9e10 100644 --- a/routers/web/admin/users.go +++ b/routers/web/admin/users.go @@ -371,6 +371,7 @@ func EditUserPost(ctx *context.Context) { emailChanged := !strings.EqualFold(u.Email, form.Email) u.Email = form.Email u.Website = form.Website + u.Description = form.Description u.Location = form.Location u.LocationCoordinate = form.LocationCoordinate u.MaxRepoCreation = form.MaxRepoCreation diff --git a/services/forms/admin.go b/services/forms/admin.go index 435e5d4c15..38dcf9f219 100644 --- a/services/forms/admin.go +++ b/services/forms/admin.go @@ -41,6 +41,7 @@ type AdminEditUserForm struct { Email string `binding:"Required;Email;MaxSize(254)"` Password string `binding:"MaxSize(255)"` Website string `binding:"ValidUrl;MaxSize(255)"` + Description string Location string `binding:"MaxSize(50)"` LocationCoordinate string `binding:"MaxSize(255)"` MaxRepoCreation int diff --git a/templates/admin/user/edit.tmpl b/templates/admin/user/edit.tmpl index f88e2bbc56..531101a2a9 100644 --- a/templates/admin/user/edit.tmpl +++ b/templates/admin/user/edit.tmpl @@ -73,6 +73,12 @@
{{.i18n.Tr "admin.users.password_helper"}}
+