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 f6b62c3bb..5efa31cf8 100644 --- a/models/user.go +++ b/models/user.go @@ -822,6 +822,7 @@ var ( ".", "..", ".well-known", + "search", } reservedUserPatterns = []string{"*.keys", "*.gpg"} )