Browse Source

add vendor to user reserved words and format words list according alphabet (#4685)

for-closed-social
Lunny Xiao 6 years ago
committed by Lauris BH
parent
commit
52c2cb15db
1 changed files with 29 additions and 1 deletions
  1. +29
    -1
      models/user.go

+ 29
- 1
models/user.go View File

@ -683,7 +683,35 @@ func NewGhostUser() *User {
} }
var ( 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"} reservedUserPatterns = []string{"*.keys"}
) )

Loading…
Cancel
Save