forked from forgejo/forgejo
parent
ba2f6a45c8
commit
d1c982cb73
6 changed files with 19 additions and 6 deletions
|
@ -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"))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue