1
0
Fork 0
forked from forgejo/forgejo

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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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"))