diff options
author | Unknwon <u@gogs.io> | 2015-08-19 03:36:16 +0800 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-08-19 03:36:16 +0800 |
commit | 4c7b6414eb91d12473ee0000bc3fccfd105feef9 (patch) | |
tree | fcba9eec9c31d4c77cb69b4afaa0eecac2d94e7c /cmd | |
parent | 2e8ffc2ffb31379998142e807f0066d5d9846c2c (diff) | |
download | gitea-4c7b6414eb91d12473ee0000bc3fccfd105feef9.tar.gz gitea-4c7b6414eb91d12473ee0000bc3fccfd105feef9.zip |
new access token UI
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/web.go | 4 |
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 |