summaryrefslogtreecommitdiffstats
path: root/modules/auth/user_form.go
diff options
context:
space:
mode:
authorzeripath <art27@cantab.net>2020-10-28 22:33:14 +0000
committerGitHub <noreply@github.com>2020-10-28 22:33:14 +0000
commitbeb6bf4261ace56f9c97c03f709b4fe29746b3d7 (patch)
treed6c9eb6bf74826bd3662c10da43730e9214e7486 /modules/auth/user_form.go
parentb64978d0bc82efd1c99d1200eff8bb592c91142f (diff)
downloadgitea-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 'modules/auth/user_form.go')
-rw-r--r--modules/auth/user_form.go1
1 files changed, 0 insertions, 1 deletions
diff --git a/modules/auth/user_form.go b/modules/auth/user_form.go
index e657f78e6d..32fde1570e 100644
--- a/modules/auth/user_form.go
+++ b/modules/auth/user_form.go
@@ -199,7 +199,6 @@ func (f *AccessTokenForm) Validate(ctx *macaron.Context, errs binding.Errors) bi
type UpdateProfileForm struct {
Name string `binding:"AlphaDashDot;MaxSize(40)"`
FullName string `binding:"MaxSize(100)"`
- Email string `binding:"Required;Email;MaxSize(254)"`
KeepEmailPrivate bool
Website string `binding:"ValidUrl;MaxSize(255)"`
Location string `binding:"MaxSize(50)"`