diff options
Diffstat (limited to 'routers/web/user/setting/applications.go')
-rw-r--r-- | routers/web/user/setting/applications.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/web/user/setting/applications.go b/routers/web/user/setting/applications.go index 4161efdea4..5e208afafe 100644 --- a/routers/web/user/setting/applications.go +++ b/routers/web/user/setting/applications.go @@ -72,7 +72,7 @@ func ApplicationsPost(ctx *context.Context) { // DeleteApplication response for delete user access token func DeleteApplication(ctx *context.Context) { - if err := models.DeleteAccessTokenByID(ctx.QueryInt64("id"), ctx.User.ID); err != nil { + if err := models.DeleteAccessTokenByID(ctx.FormInt64("id"), ctx.User.ID); err != nil { ctx.Flash.Error("DeleteAccessTokenByID: " + err.Error()) } else { ctx.Flash.Success(ctx.Tr("settings.delete_token_success")) |