aboutsummaryrefslogtreecommitdiffstats
path: root/modules/auth/user_form.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-12-11 15:31:02 -0500
committerUnknwon <u@gogs.io>2015-12-11 15:31:02 -0500
commitd0b0d24f22f117eb6ae41a5180b8cdb7d957ac55 (patch)
treefbfff51c5aa2463e56145f6e2a62e42f1dff3d66 /modules/auth/user_form.go
parent5d95ffe3eb216845606b7652160865eb1dd58111 (diff)
downloadgitea-d0b0d24f22f117eb6ae41a5180b8cdb7d957ac55.tar.gz
gitea-d0b0d24f22f117eb6ae41a5180b8cdb7d957ac55.zip
#2154 disable change user for non-local users
- #2153 remove require for gravatar
Diffstat (limited to 'modules/auth/user_form.go')
-rw-r--r--modules/auth/user_form.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/auth/user_form.go b/modules/auth/user_form.go
index bc826c6915..2942940dee 100644
--- a/modules/auth/user_form.go
+++ b/modules/auth/user_form.go
@@ -92,7 +92,7 @@ type UpdateProfileForm struct {
Email string `binding:"Required;Email;MaxSize(254)"`
Website string `binding:"Url;MaxSize(100)"`
Location string `binding:"MaxSize(50)"`
- Gravatar string `binding:"Required;Email;MaxSize(254)"`
+ Gravatar string `binding:"OmitEmpty;Email;MaxSize(254)"`
}
func (f *UpdateProfileForm) Validate(ctx *macaron.Context, errs binding.Errors) binding.Errors {