From 6ef0ab4d9665936b2bddbf4f40f61bdd9f8a71eb Mon Sep 17 00:00:00 2001 From: Antoine GIRARD Date: Mon, 18 Nov 2019 23:40:14 +0100 Subject: [PATCH] fix: add search to reserved usernames (#9063) (#9065) * 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 f6b62c3bb..5efa31cf8 100644 --- a/models/user.go +++ b/models/user.go @@ -822,6 +822,7 @@ var ( ".", "..", ".well-known", + "search", } reservedUserPatterns = []string{"*.keys", "*.gpg"} )