Fix user update

This commit is contained in:
cuigh 2017-11-20 11:33:38 +08:00
parent 0b2fdb035d
commit ef548fca70

View File

@ -135,7 +135,7 @@ func userEdit(ctx web.Context) error {
func userUpdate(ctx web.Context) error {
user := &model.User{}
err := ctx.Bind(user, true)
err := ctx.Bind(user)
if err == nil {
err = biz.User.Update(user, ctx.User())
}