summaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorLauris BH <lauris@nix.lv>2017-07-19 04:36:37 +0300
committerLunny Xiao <xiaolunwen@gmail.com>2017-07-19 09:36:37 +0800
commit3702dac0d5bc39f63da987227822d86224b6c446 (patch)
tree84360b05222cbefe935c6d19f98149737671e2c3 /modules
parentf33e6ae09ec27e898bb8f2cc44d587ea3b8e0dee (diff)
downloadgitea-3702dac0d5bc39f63da987227822d86224b6c446.tar.gz
gitea-3702dac0d5bc39f63da987227822d86224b6c446.zip
Fix profile update for non-local users (#2178)
Diffstat (limited to 'modules')
-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 3c8ebf725b..4f7b80f590 100644
--- a/modules/auth/user_form.go
+++ b/modules/auth/user_form.go
@@ -100,7 +100,7 @@ func (f *SignInForm) Validate(ctx *macaron.Context, errs binding.Errors) binding
// UpdateProfileForm form for updating profile
type UpdateProfileForm struct {
- Name string `binding:"Required;AlphaDashDot;MaxSize(35)"`
+ Name string `binding:"AlphaDashDot;MaxSize(35)"`
FullName string `binding:"MaxSize(100)"`
Email string `binding:"Required;Email;MaxSize(254)"`
KeepEmailPrivate bool