Browse Source

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>
tags/v1.10.1
Antoine GIRARD 4 years ago
parent
commit
6ef0ab4d96
2 changed files with 2 additions and 0 deletions
  1. 1
    0
      integrations/user_test.go
  2. 1
    0
      models/user.go

+ 1
- 0
integrations/user_test.go View File

"repo", "repo",
"template", "template",
"user", "user",
"search",
} }


session := loginUser(t, "user2") session := loginUser(t, "user2")

+ 1
- 0
models/user.go View File

".", ".",
"..", "..",
".well-known", ".well-known",
"search",
} }
reservedUserPatterns = []string{"*.keys", "*.gpg"} reservedUserPatterns = []string{"*.keys", "*.gpg"}
) )

Loading…
Cancel
Save