aboutsummaryrefslogtreecommitdiffstats
path: root/models
diff options
context:
space:
mode:
authorAntoine GIRARD <sapk@users.noreply.github.com>2019-11-18 21:03:25 +0100
committertechknowlogick <techknowlogick@gitea.io>2019-11-18 15:03:25 -0500
commitf128e06ea608f07f279baa5c3e934b020fa57682 (patch)
tree70b9b7625b20259bd956a1cc44f3a4f97aa4e349 /models
parentd338e8238fccd8fe9309aafca7c62f120cee260a (diff)
downloadgitea-f128e06ea608f07f279baa5c3e934b020fa57682.tar.gz
gitea-f128e06ea608f07f279baa5c3e934b020fa57682.zip
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>
Diffstat (limited to 'models')
-rw-r--r--models/user.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/models/user.go b/models/user.go
index ce78e5bfce..2cef2e5dec 100644
--- a/models/user.go
+++ b/models/user.go
@@ -822,6 +822,7 @@ var (
".",
"..",
".well-known",
+ "search",
}
reservedUserPatterns = []string{"*.keys", "*.gpg"}
)