1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-15 23:17:19 +00:00

Add bio field for user (#6113)

Fix #4339
This commit is contained in:
techknowlogick
2019-03-18 22:28:10 -04:00
committed by GitHub
parent ba2f6a45c8
commit d1c982cb73
6 changed files with 19 additions and 6 deletions

View File

@@ -92,6 +92,7 @@ func ProfilePost(ctx *context.Context, form auth.UpdateProfileForm) {
ctx.User.Website = form.Website
ctx.User.Location = form.Location
ctx.User.Language = form.Language
ctx.User.Description = form.Description
if err := models.UpdateUserSetting(ctx.User); err != nil {
if _, ok := err.(models.ErrEmailAlreadyUsed); ok {
ctx.Flash.Error(ctx.Tr("form.email_been_used"))