summaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-08-19 03:36:16 +0800
committerUnknwon <u@gogs.io>2015-08-19 03:36:16 +0800
commit4c7b6414eb91d12473ee0000bc3fccfd105feef9 (patch)
treefcba9eec9c31d4c77cb69b4afaa0eecac2d94e7c /cmd
parent2e8ffc2ffb31379998142e807f0066d5d9846c2c (diff)
downloadgitea-4c7b6414eb91d12473ee0000bc3fccfd105feef9.tar.gz
gitea-4c7b6414eb91d12473ee0000bc3fccfd105feef9.zip
new access token UI
Diffstat (limited to 'cmd')
-rw-r--r--cmd/web.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/cmd/web.go b/cmd/web.go
index 24b5a42a85..a0e72b3810 100644
--- a/cmd/web.go
+++ b/cmd/web.go
@@ -271,7 +271,9 @@ func runWeb(ctx *cli.Context) {
m.Get("/ssh", user.SettingsSSHKeys)
m.Post("/ssh", bindIgnErr(auth.AddSSHKeyForm{}), user.SettingsSSHKeysPost)
m.Get("/social", user.SettingsSocial)
- m.Combo("/applications").Get(user.SettingsApplications).Post(bindIgnErr(auth.NewAccessTokenForm{}), user.SettingsApplicationsPost)
+ m.Combo("/applications").Get(user.SettingsApplications).
+ Post(bindIgnErr(auth.NewAccessTokenForm{}), user.SettingsApplicationsPost)
+ m.Post("/applications/delete", user.SettingsDeleteApplication)
m.Route("/delete", "GET,POST", user.SettingsDelete)
}, reqSignIn, func(ctx *middleware.Context) {
ctx.Data["PageIsUserSettings"] = true