mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 16:40:24 +08:00 
			
		
		
		
	* fix: add search to reserved usernames * Update integrations/user_test.go Co-Authored-By: 6543 <24977596+6543@users.noreply.github.com>
This commit is contained in:
		@@ -90,6 +90,7 @@ func TestRenameReservedUsername(t *testing.T) {
 | 
			
		||||
		"repo",
 | 
			
		||||
		"template",
 | 
			
		||||
		"user",
 | 
			
		||||
		"search",
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	session := loginUser(t, "user2")
 | 
			
		||||
 
 | 
			
		||||
@@ -822,6 +822,7 @@ var (
 | 
			
		||||
		".",
 | 
			
		||||
		"..",
 | 
			
		||||
		".well-known",
 | 
			
		||||
		"search",
 | 
			
		||||
	}
 | 
			
		||||
	reservedUserPatterns = []string{"*.keys", "*.gpg"}
 | 
			
		||||
)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user