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 /integrations/signout_test.go | |
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 'integrations/signout_test.go')
-rw-r--r-- | integrations/signout_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/integrations/signout_test.go b/integrations/signout_test.go index 65957b244e..c31c913070 100644 --- a/integrations/signout_test.go +++ b/integrations/signout_test.go @@ -14,7 +14,7 @@ func TestSignOut(t *testing.T) { session := loginUser(t, "user2") - req := NewRequest(t, "GET", "/user/logout") + req := NewRequest(t, "POST", "/user/logout") session.MakeRequest(t, req, http.StatusFound) // try to view a private repo, should fail |