summaryrefslogtreecommitdiff
path: root/user/router.go
diff options
context:
space:
mode:
Diffstat (limited to 'user/router.go')
-rw-r--r--user/router.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/user/router.go b/user/router.go
index ad9b4df..2614bf4 100644
--- a/user/router.go
+++ b/user/router.go
@@ -27,7 +27,7 @@ func Routes(route *gin.Engine) {
{
u.GET("/", util.Authorize(), getSelf)
u.POST("/new", validateMiddleware(), save)
- u.PUT("/:userId", checkPassword(), modify)
- u.DELETE("/:userId", checkPassword(), remove)
+ u.PUT("/:userId", CheckPassword(), modify)
+ u.DELETE("/:userId", CheckPassword(), remove)
}
}