mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	Use JSON response for "user/logout" (#25522)
The request sent to "user/logout" is from "link-action", it expects to get JSON response.
This commit is contained in:
		@@ -383,7 +383,7 @@ func SignOut(ctx *context.Context) {
 | 
			
		||||
		})
 | 
			
		||||
	}
 | 
			
		||||
	HandleSignOut(ctx)
 | 
			
		||||
	ctx.Redirect(setting.AppSubURL + "/")
 | 
			
		||||
	ctx.JSONRedirect(setting.AppSubURL + "/")
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// SignUp render the register page
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user