mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	Test more reserved usernames (#8263)
* Test more reserved usernames * Add more reserved usernames, sort them * Reserve "attachments" username (is a used route) * It's "avatars" being reserved, not "avatar"
This commit is contained in:
		
				
					committed by
					
						
						techknowlogick
					
				
			
			
				
	
			
			
			
						parent
						
							43c0249583
						
					
				
				
					commit
					3dd1cee331
				
			@@ -776,6 +776,7 @@ func NewGhostUser() *User {
 | 
			
		||||
 | 
			
		||||
var (
 | 
			
		||||
	reservedUsernames = []string{
 | 
			
		||||
		"attachments",
 | 
			
		||||
		"admin",
 | 
			
		||||
		"api",
 | 
			
		||||
		"assets",
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user