diff options
author | John Olheiser <john.olheiser@gmail.com> | 2020-03-02 22:50:31 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-02 22:50:31 -0600 |
commit | 0e2217bd2d8833f0bff84767f676fc93c84d4b9a (patch) | |
tree | 1c3761814e57b37cb313a9e475719d76e9dbe02f /routers | |
parent | bea497ff96f4deae617e54468576d11d105e2125 (diff) | |
download | gitea-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.go | 2 |
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 ***** |