Skip to content

Commit

Permalink
更新用户后自动重启trojan
Browse files Browse the repository at this point in the history
  • Loading branch information
Jrohy committed Oct 13, 2020
1 parent 208d7f0 commit fcb5f9c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions web/controller/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,8 @@ func UpdateUser(id uint, username string, password string) *ResponseBody {
}
if err := mysql.UpdateUser(id, username, password, string(pass)); err != nil {
responseBody.Msg = err.Error()
} else {
Restart()
}
return &responseBody
}
Expand Down

0 comments on commit fcb5f9c

Please sign in to comment.