From 2996573976a25844e8249469f16a530363694ca7 Mon Sep 17 00:00:00 2001 From: Lauris BH Date: Wed, 2 May 2018 12:47:24 +0300 Subject: [PATCH] Add "error" as reserved username (#3882) (#3886) --- models/user.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/user.go b/models/user.go index af978dc56..06b427e9f 100644 --- a/models/user.go +++ b/models/user.go @@ -651,7 +651,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"} )