aboutsummaryrefslogtreecommitdiff
path: root/modules/auth/user_form.go
diff options
context:
space:
mode:
authorUnknwon <joe2010xtmf@163.com>2014-11-21 12:51:36 -0500
committerUnknwon <joe2010xtmf@163.com>2014-11-21 12:51:36 -0500
commitef275ebf62608b1bd2c7e48862e723cd822d93c2 (patch)
tree1ff4e8cd2a7b85b85b19d03855cb51e6327c3e8a /modules/auth/user_form.go
parent22ab4fa1b0bdbea10979ae87568452b5bbf9b6af (diff)
more on change avatar
Diffstat (limited to 'modules/auth/user_form.go')
-rw-r--r--modules/auth/user_form.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/auth/user_form.go b/modules/auth/user_form.go
index afdd8be0..4dfe2499 100644
--- a/modules/auth/user_form.go
+++ b/modules/auth/user_form.go
@@ -89,7 +89,8 @@ func (f *UpdateProfileForm) Validate(ctx *macaron.Context, errs binding.Errors)
}
type UploadAvatarForm struct {
- Avatar *multipart.FileHeader `form:"avatar" binding:"Required"`
+ Enable bool `form:"enable"`
+ Avatar *multipart.FileHeader `form:"avatar"`
}
func (f *UploadAvatarForm) Validate(ctx *macaron.Context, errs binding.Errors) binding.Errors {