Add "error" as reserved username (#3882) (#3886)

release/v1.4
Lauris BH 6 years ago committed by GitHub
parent d0a9957c32
commit 2996573976
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -651,7 +651,7 @@ 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", "new", ".", ".."}
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", ".", ".."}
reservedUserPatterns = []string{"*.keys"}
)

Loading…
Cancel
Save