From f128e06ea608f07f279baa5c3e934b020fa57682 Mon Sep 17 00:00:00 2001 From: Antoine GIRARD Date: Mon, 18 Nov 2019 21:03:25 +0100 Subject: [PATCH] fix: add search to reserved usernames (#9063) * fix: add search to reserved usernames * Update integrations/user_test.go Co-Authored-By: 6543 <24977596+6543@users.noreply.github.com> --- integrations/user_test.go | 1 + models/user.go | 1 + 2 files changed, 2 insertions(+) diff --git a/integrations/user_test.go b/integrations/user_test.go index 0a6fdd19d..452ea2ddf 100644 --- a/integrations/user_test.go +++ b/integrations/user_test.go @@ -90,6 +90,7 @@ func TestRenameReservedUsername(t *testing.T) { "repo", "template", "user", + "search", } session := loginUser(t, "user2") diff --git a/models/user.go b/models/user.go index ce78e5bfc..2cef2e5de 100644 --- a/models/user.go +++ b/models/user.go @@ -822,6 +822,7 @@ var ( ".", "..", ".well-known", + "search", } reservedUserPatterns = []string{"*.keys", "*.gpg"} )