summaryrefslogtreecommitdiffstats
path: root/models
diff options
context:
space:
mode:
authorOtto Richter <git@otto.splvs.net>2024-12-09 18:44:08 +0100
committerOtto Richter <git@otto.splvs.net>2024-12-09 18:45:05 +0100
commit5f173bdab3d3b6b625bdd56d640332a1ed98bcd0 (patch)
tree98176182988ab818da23e7ad6e1ea166fc3a54ee /models
parentMerge pull request 'chore(ci): set the milestone when a pull request is open ... (diff)
downloadforgejo-5f173bdab3d3b6b625bdd56d640332a1ed98bcd0.tar.xz
forgejo-5f173bdab3d3b6b625bdd56d640332a1ed98bcd0.zip
Add `-` as reserved user
used in routers such as https://codeberg.org/forgejo/forgejo/src/commit/af640ac4d4f3c2cbd93e7f23a9615be65f0b4611/routers/init.go#L185
Diffstat (limited to 'models')
-rw-r--r--models/user/user.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/models/user/user.go b/models/user/user.go
index d49fbdd2fc..ec9b35964d 100644
--- a/models/user/user.go
+++ b/models/user/user.go
@@ -586,6 +586,7 @@ var (
reservedUsernames = []string{
".",
"..",
+ "-", // used by certain web routes
".well-known",
"api", // gitea api