diff options
author | techknowlogick <techknowlogick@gitea.io> | 2020-10-29 02:44:45 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-29 02:44:45 -0400 |
commit | 8e38bd154f9d39c6e3b6b991649ae0e1152a4fc3 (patch) | |
tree | 61885aeafb883856630de7fa75623a8f5943e70d /routers | |
parent | 0b0456310f5929bef8c7a9af5d1044088bde7565 (diff) | |
download | gitea-8e38bd154f9d39c6e3b6b991649ae0e1152a4fc3.tar.gz gitea-8e38bd154f9d39c6e3b6b991649ae0e1152a4fc3.zip |
Remove obsolete change of email on profile page (#13341) (#13347)
* 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>
Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: Lauris BH <lauris@nix.lv>
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 |