diff options
author | Sandro Santilli <strk@kbt.io> | 2019-09-24 19:12:56 +0200 |
---|---|---|
committer | techknowlogick <techknowlogick@gitea.io> | 2019-09-24 13:12:56 -0400 |
commit | 3dd1cee331b8d0beb84e2f92481183520939213a (patch) | |
tree | b190cc87e251acc4e2a1a8f6c4d8070c3d967b63 /models/user.go | |
parent | 43c0249583e3337f9b2e87f4797eb16f1678c862 (diff) | |
download | gitea-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.go | 1 |
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", |