diff options
author | Gusted <williamzijl7@hotmail.com> | 2022-03-31 06:02:13 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-31 12:02:13 +0800 |
commit | 43332a483f7838df66e0209eb9c15d4aba3d5874 (patch) | |
tree | 684e440f4f27ad3e09776ae5e203e1d289737175 /integrations | |
parent | ba5f2acb9ccb40281ca8ab7eaf9dea6a77eb220d (diff) | |
download | gitea-43332a483f7838df66e0209eb9c15d4aba3d5874.tar.gz gitea-43332a483f7838df66e0209eb9c15d4aba3d5874.zip |
Update reserved usernames list (#18438)
Adding additional usernames which are already routes, remove unused ones.
In future, avoid reserving names as much as possible, use `/-/` in path instead.
Diffstat (limited to 'integrations')
-rw-r--r-- | integrations/user_test.go | 26 |
1 files changed, 22 insertions, 4 deletions
diff --git a/integrations/user_test.go b/integrations/user_test.go index 24f2a4d6a8..f7c9acb057 100644 --- a/integrations/user_test.go +++ b/integrations/user_test.go @@ -75,23 +75,41 @@ func TestRenameReservedUsername(t *testing.T) { defer prepareTestEnv(t)() reservedUsernames := []string{ + ".", + "..", + ".well-known", "admin", "api", + "assets", "attachments", + "avatar", "avatars", + "captcha", + "commits", + "debug", + "error", "explore", - "help", - "install", + "favicon.ico", + "ghost", "issues", "login", + "manifest.json", "metrics", + "milestones", + "new", "notifications", "org", "pulls", + "raw", "repo", - "template", - "user", + "repo-avatars", + "robots.txt", "search", + "serviceworker.js", + "ssh_info", + "swagger.v1.json", + "user", + "v2", } session := loginUser(t, "user2") |