summaryrefslogtreecommitdiffstats
path: root/routers
diff options
context:
space:
mode:
authorJohn Olheiser <john.olheiser@gmail.com>2020-03-02 22:50:31 -0600
committerGitHub <noreply@github.com>2020-03-02 22:50:31 -0600
commit0e2217bd2d8833f0bff84767f676fc93c84d4b9a (patch)
tree1c3761814e57b37cb313a9e475719d76e9dbe02f /routers
parentbea497ff96f4deae617e54468576d11d105e2125 (diff)
downloadgitea-0e2217bd2d8833f0bff84767f676fc93c84d4b9a.tar.gz
gitea-0e2217bd2d8833f0bff84767f676fc93c84d4b9a.zip
Logout POST action (#10582)
* Change logout to POST * Update for redirect Signed-off-by: jolheiser <john.olheiser@gmail.com>
Diffstat (limited to 'routers')
-rw-r--r--routers/routes/routes.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/routes/routes.go b/routers/routes/routes.go
index a8a08c9eca..0b0b4e05a3 100644
--- a/routers/routes/routes.go
+++ b/routers/routes/routes.go
@@ -413,7 +413,7 @@ func RegisterRoutes(m *macaron.Macaron) {
m.Post("/recover_account", user.ResetPasswdPost)
m.Get("/forgot_password", user.ForgotPasswd)
m.Post("/forgot_password", user.ForgotPasswdPost)
- m.Get("/logout", user.SignOut)
+ m.Post("/logout", user.SignOut)
})
// ***** END: User *****