Skip to content

Commit

Permalink
fix: add search to reserved usernames (#9063) (#9065)
Browse files Browse the repository at this point in the history
* fix: add search to reserved usernames

* Update integrations/user_test.go

Co-Authored-By: 6543 <24977596+6543@users.noreply.github.com>
  • Loading branch information
2 people authored and zeripath committed Nov 18, 2019
1 parent ecdb4c1 commit 6ef0ab4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions integrations/user_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ func TestRenameReservedUsername(t *testing.T) {
"repo",
"template",
"user",
"search",
}

session := loginUser(t, "user2")
Expand Down
1 change: 1 addition & 0 deletions models/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -822,6 +822,7 @@ var (
".",
"..",
".well-known",
"search",
}
reservedUserPatterns = []string{"*.keys", "*.gpg"}
)
Expand Down

0 comments on commit 6ef0ab4

Please sign in to comment.