diff options
author | zeripath <art27@cantab.net> | 2020-10-28 22:33:14 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-28 22:33:14 +0000 |
commit | beb6bf4261ace56f9c97c03f709b4fe29746b3d7 (patch) | |
tree | d6c9eb6bf74826bd3662c10da43730e9214e7486 /routers | |
parent | b64978d0bc82efd1c99d1200eff8bb592c91142f (diff) | |
download | gitea-beb6bf4261ace56f9c97c03f709b4fe29746b3d7.tar.gz gitea-beb6bf4261ace56f9c97c03f709b4fe29746b3d7.zip |
Remove obsolete change of email on profile page (#13341)
* Remove obsolete change of email on profile page
The change email on the account profile page is out-of-date
and unnecessary.
Changing email should be done using the account page.
Fix #13336
Signed-off-by: Andrew Thornton <art27@cantab.net>
Diffstat (limited to 'routers')
-rw-r--r-- | routers/user/setting/profile.go | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/routers/user/setting/profile.go b/routers/user/setting/profile.go index edb78031f2..6653230a39 100644 --- a/routers/user/setting/profile.go +++ b/routers/user/setting/profile.go @@ -91,7 +91,6 @@ func ProfilePost(ctx *context.Context, form auth.UpdateProfileForm) { } ctx.User.FullName = form.FullName - ctx.User.Email = form.Email ctx.User.KeepEmailPrivate = form.KeepEmailPrivate ctx.User.Website = form.Website ctx.User.Location = form.Location |