mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	Logout POST action (#10582)
* Change logout to POST * Update for redirect Signed-off-by: jolheiser <john.olheiser@gmail.com>
This commit is contained in:
		@@ -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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user