Skip to content

Commit 2996573

Browse files
authored
Add "error" as reserved username (#3882) (#3886)
1 parent d0a9957 commit 2996573

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

models/user.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -651,7 +651,7 @@ func NewGhostUser() *User {
651651
}
652652

653653
var (
654-
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", ".", ".."}
654+
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", ".", ".."}
655655
reservedUserPatterns = []string{"*.keys"}
656656
)
657657

0 commit comments

Comments
 (0)