summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSandro Santilli <strk@kbt.io>2017-03-12 02:39:38 +0100
committerLunny Xiao <xiaolunwen@gmail.com>2017-03-12 09:39:38 +0800
commit0475e7351fda1c1d60958f807c51001d10dee9bb (patch)
treebbab3a5cc0ddb4dde692355f237fd4140ce934d3
parentbdcc1a23e0525da67d722c65bcdbb7e3fa7cfdf8 (diff)
downloadgitea-0475e7351fda1c1d60958f807c51001d10dee9bb.tar.gz
gitea-0475e7351fda1c1d60958f807c51001d10dee9bb.zip
Reserve the "explore" user/org name (#1222)
-rw-r--r--models/user.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/user.go b/models/user.go
index a7e22659ec..7cdff1a46f 100644
--- a/models/user.go
+++ b/models/user.go
@@ -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"}
)