mirror of
https://github.com/cuigh/swirl
synced 2024-12-30 15:53:24 +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 {
|
func userUpdate(ctx web.Context) error {
|
||||||
user := &model.User{}
|
user := &model.User{}
|
||||||
err := ctx.Bind(user, true)
|
err := ctx.Bind(user)
|
||||||
if err == nil {
|
if err == nil {
|
||||||
err = biz.User.Update(user, ctx.User())
|
err = biz.User.Update(user, ctx.User())
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user