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