Browse Source

Reserve the "explore" user/org name (#1222)

for-closed-social
Sandro Santilli 7 years ago
committed by Lunny Xiao
parent
commit
0475e7351f
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      models/user.go

+ 1
- 1
models/user.go View File

@ -630,7 +630,7 @@ func NewGhostUser() *User {
}
var (
reservedUsernames = []string{"assets", "css", "img", "js", "less", "plugins", "debug", "raw", "install", "api", "avatar", "user", "org", "help", "stars", "issues", "pulls", "commits", "repo", "template", "admin", "new", ".", ".."}
reservedUsernames = []string{"assets", "css", "explore", "img", "js", "less", "plugins", "debug", "raw", "install", "api", "avatar", "user", "org", "help", "stars", "issues", "pulls", "commits", "repo", "template", "admin", "new", ".", ".."}
reservedUserPatterns = []string{"*.keys"}
)

Loading…
Cancel
Save