Skip to content

Commit 52c2cb1

Browse files
lunnylafriks
authored andcommitted
add vendor to user reserved words and format words list according alphabet (#4685)
1 parent a4fa6bb commit 52c2cb1

File tree

1 file changed

+29
-1
lines changed

1 file changed

+29
-1
lines changed

models/user.go

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -683,7 +683,35 @@ func NewGhostUser() *User {
683683
}
684684

685685
var (
686-
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", ".", ".."}
686+
reservedUsernames = []string{
687+
"admin",
688+
"api",
689+
"assets",
690+
"avatars",
691+
"commits",
692+
"css",
693+
"debug",
694+
"error",
695+
"explore",
696+
"help",
697+
"img",
698+
"install",
699+
"issues",
700+
"js",
701+
"less",
702+
"new",
703+
"org",
704+
"plugins",
705+
"pulls",
706+
"raw",
707+
"repo",
708+
"stars",
709+
"template",
710+
"user",
711+
"vendor",
712+
".",
713+
"..",
714+
}
687715
reservedUserPatterns = []string{"*.keys"}
688716
)
689717

0 commit comments

Comments
 (0)