Skip to content

Commit

Permalink
Add "error" as reserved username (#3882) (#3886)
Browse files Browse the repository at this point in the history
  • Loading branch information
lafriks committed May 2, 2018
1 parent d0a9957 commit 2996573
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"}
)

Expand Down

0 comments on commit 2996573

Please sign in to comment.