mirror of
https://github.com/cuigh/swirl
synced 2024-12-28 14:51:57 +00:00
Fix user update
This commit is contained in:
parent
0b2fdb035d
commit
ef548fca70
@ -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())
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user