summaryrefslogtreecommitdiffstats
path: root/models
diff options
context:
space:
mode:
authorLauris BH <lauris@nix.lv>2018-05-02 11:06:31 +0300
committerGitHub <noreply@github.com>2018-05-02 11:06:31 +0300
commit94954299828e612bf69058925243e4ca804451be (patch)
tree2dd59b2e02aa163ea38291ff40f7b7752f554c72 /models
parent954e69f66d8688cec3a866c8e4dac8a97f0e70b2 (diff)
downloadgitea-94954299828e612bf69058925243e4ca804451be.tar.gz
gitea-94954299828e612bf69058925243e4ca804451be.zip
Add "error" as reserved username (#3882)
Diffstat (limited to 'models')
-rw-r--r--models/user.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/user.go b/models/user.go
index aab1e99f0e..2167e269b6 100644
--- a/models/user.go
+++ b/models/user.go
@@ -652,7 +652,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"}
)