summaryrefslogtreecommitdiffstats
path: root/routers/user/setting/applications.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/user/setting/applications.go')
-rw-r--r--routers/user/setting/applications.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/routers/user/setting/applications.go b/routers/user/setting/applications.go
index 04f9d9f7f9..8da36dc6cf 100644
--- a/routers/user/setting/applications.go
+++ b/routers/user/setting/applications.go
@@ -7,10 +7,11 @@ package setting
import (
"code.gitea.io/gitea/models"
- "code.gitea.io/gitea/modules/auth"
"code.gitea.io/gitea/modules/base"
"code.gitea.io/gitea/modules/context"
+ auth "code.gitea.io/gitea/modules/forms"
"code.gitea.io/gitea/modules/setting"
+ "code.gitea.io/gitea/modules/web"
)
const (
@@ -28,7 +29,8 @@ func Applications(ctx *context.Context) {
}
// ApplicationsPost response for add user's access token
-func ApplicationsPost(ctx *context.Context, form auth.NewAccessTokenForm) {
+func ApplicationsPost(ctx *context.Context) {
+ form := web.GetForm(ctx).(*auth.NewAccessTokenForm)
ctx.Data["Title"] = ctx.Tr("settings")
ctx.Data["PageIsSettingsApplications"] = true