diff options
author | Lauris BH <lauris@nix.lv> | 2018-05-02 11:06:31 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-02 11:06:31 +0300 |
commit | 94954299828e612bf69058925243e4ca804451be (patch) | |
tree | 2dd59b2e02aa163ea38291ff40f7b7752f554c72 /models | |
parent | 954e69f66d8688cec3a866c8e4dac8a97f0e70b2 (diff) | |
download | gitea-94954299828e612bf69058925243e4ca804451be.tar.gz gitea-94954299828e612bf69058925243e4ca804451be.zip |
Add "error" as reserved username (#3882)
Diffstat (limited to 'models')
-rw-r--r-- | models/user.go | 2 |
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"} ) |