mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-26 12:27:06 +00:00 
			
		
		
		
	add vendor to user reserved words and format words list according alphabet (#4685)
This commit is contained in:
		| @@ -683,7 +683,35 @@ func NewGhostUser() *User { | ||||
| } | ||||
|  | ||||
| var ( | ||||
| 	reservedUsernames    = []string{"assets", "css", "explore", "img", "js", "less", "plugins", "debug", "raw", "install", "api", "avatars", "user", "org", "help", "stars", "issues", "pulls", "commits", "repo", "template", "admin", "error", "new", ".", ".."} | ||||
| 	reservedUsernames = []string{ | ||||
| 		"admin", | ||||
| 		"api", | ||||
| 		"assets", | ||||
| 		"avatars", | ||||
| 		"commits", | ||||
| 		"css", | ||||
| 		"debug", | ||||
| 		"error", | ||||
| 		"explore", | ||||
| 		"help", | ||||
| 		"img", | ||||
| 		"install", | ||||
| 		"issues", | ||||
| 		"js", | ||||
| 		"less", | ||||
| 		"new", | ||||
| 		"org", | ||||
| 		"plugins", | ||||
| 		"pulls", | ||||
| 		"raw", | ||||
| 		"repo", | ||||
| 		"stars", | ||||
| 		"template", | ||||
| 		"user", | ||||
| 		"vendor", | ||||
| 		".", | ||||
| 		"..", | ||||
| 	} | ||||
| 	reservedUserPatterns = []string{"*.keys"} | ||||
| ) | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Lunny Xiao
					Lunny Xiao