|
|
@ -79,7 +79,7 @@ func SettingsPost(ctx *middleware.Context, form auth.UpdateProfileForm) { |
|
|
|
ctx.User.Email = form.Email |
|
|
|
ctx.User.Email = form.Email |
|
|
|
ctx.User.Website = form.Website |
|
|
|
ctx.User.Website = form.Website |
|
|
|
ctx.User.Location = form.Location |
|
|
|
ctx.User.Location = form.Location |
|
|
|
ctx.User.Avatar = base.EncodeMd5(form.Gravatar) |
|
|
|
ctx.User.Avatar = base.EncodeMD5(form.Gravatar) |
|
|
|
ctx.User.AvatarEmail = form.Gravatar |
|
|
|
ctx.User.AvatarEmail = form.Gravatar |
|
|
|
if err := models.UpdateUser(ctx.User); err != nil { |
|
|
|
if err := models.UpdateUser(ctx.User); err != nil { |
|
|
|
ctx.Handle(500, "UpdateUser", err) |
|
|
|
ctx.Handle(500, "UpdateUser", err) |
|
|
|