From 4c7b6414eb91d12473ee0000bc3fccfd105feef9 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Wed, 19 Aug 2015 03:36:16 +0800 Subject: new access token UI --- cmd/web.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'cmd') diff --git a/cmd/web.go b/cmd/web.go index 24b5a42a..a0e72b38 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 -- cgit v1.2.3