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>
tokarchuk/v1.17
Antoine GIRARD 5 years ago committed by techknowlogick
parent d338e8238f
commit f128e06ea6
  1. 1
      integrations/user_test.go
  2. 1
      models/user.go

@ -90,6 +90,7 @@ func TestRenameReservedUsername(t *testing.T) {
"repo", "repo",
"template", "template",
"user", "user",
"search",
} }
session := loginUser(t, "user2") session := loginUser(t, "user2")

@ -822,6 +822,7 @@ var (
".", ".",
"..", "..",
".well-known", ".well-known",
"search",
} }
reservedUserPatterns = []string{"*.keys", "*.gpg"} reservedUserPatterns = []string{"*.keys", "*.gpg"}
) )

Loading…
Cancel
Save