aboutsummaryrefslogtreecommitdiffstats
path: root/models/user.go
diff options
context:
space:
mode:
authorSandro Santilli <strk@kbt.io>2019-09-24 19:12:56 +0200
committertechknowlogick <techknowlogick@gitea.io>2019-09-24 13:12:56 -0400
commit3dd1cee331b8d0beb84e2f92481183520939213a (patch)
treeb190cc87e251acc4e2a1a8f6c4d8070c3d967b63 /models/user.go
parent43c0249583e3337f9b2e87f4797eb16f1678c862 (diff)
downloadgitea-3dd1cee331b8d0beb84e2f92481183520939213a.tar.gz
gitea-3dd1cee331b8d0beb84e2f92481183520939213a.zip
Test more reserved usernames (#8263)
* Test more reserved usernames * Add more reserved usernames, sort them * Reserve "attachments" username (is a used route) * It's "avatars" being reserved, not "avatar"
Diffstat (limited to 'models/user.go')
-rw-r--r--models/user.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/models/user.go b/models/user.go
index 5e87473e86..e31f8b8534 100644
--- a/models/user.go
+++ b/models/user.go
@@ -776,6 +776,7 @@ func NewGhostUser() *User {
var (
reservedUsernames = []string{
+ "attachments",
"admin",
"api",
"assets",