diff --git a/routers/web/admin/users.go b/routers/web/admin/users.go index 4b94fe9e10..7cb7e9c8d9 100644 --- a/routers/web/admin/users.go +++ b/routers/web/admin/users.go @@ -372,6 +372,9 @@ func EditUserPost(ctx *context.Context) { u.Email = form.Email u.Website = form.Website u.Description = form.Description + u.Competences = form.Competences + u.Resources = form.Resources + u.Interests = form.Interests 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 8a4aaaed50..94e487ee0d 100644 --- a/services/forms/admin.go +++ b/services/forms/admin.go @@ -42,6 +42,9 @@ type AdminEditUserForm struct { Password string `binding:"MaxSize(255)"` Website string `binding:"ValidUrl;MaxSize(255)"` Description string `binding:"MaxSize(1024)"` + Competences string `binding:"MaxSize(1024)"` + Resources string `binding:"MaxSize(1024)"` + Interests string `binding:"MaxSize(1024)"` 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 7487baf947..518fc1bda2 100644 --- a/templates/admin/user/edit.tmpl +++ b/templates/admin/user/edit.tmpl @@ -77,6 +77,18 @@ +