@ -29,6 +29,7 @@ import (
"code.gitea.io/gitea/modules/generate"
"code.gitea.io/gitea/modules/generate"
"code.gitea.io/gitea/modules/git"
"code.gitea.io/gitea/modules/git"
"code.gitea.io/gitea/modules/log"
"code.gitea.io/gitea/modules/log"
"code.gitea.io/gitea/modules/public"
"code.gitea.io/gitea/modules/setting"
"code.gitea.io/gitea/modules/setting"
"code.gitea.io/gitea/modules/structs"
"code.gitea.io/gitea/modules/structs"
api "code.gitea.io/gitea/modules/structs"
api "code.gitea.io/gitea/modules/structs"
@ -879,7 +880,7 @@ func (u *User) IsGhost() bool {
}
}
var (
var (
reservedUsernames = [ ] string {
reservedUsernames = append ( [ ] string {
"." ,
"." ,
".." ,
".." ,
".well-known" ,
".well-known" ,
@ -889,17 +890,13 @@ var (
"attachments" ,
"attachments" ,
"avatars" ,
"avatars" ,
"commits" ,
"commits" ,
"css" ,
"debug" ,
"debug" ,
"error" ,
"error" ,
"explore" ,
"explore" ,
"fomantic" ,
"ghost" ,
"ghost" ,
"help" ,
"help" ,
"img" ,
"install" ,
"install" ,
"issues" ,
"issues" ,
"js" ,
"less" ,
"less" ,
"login" ,
"login" ,
"manifest.json" ,
"manifest.json" ,
@ -917,8 +914,8 @@ var (
"stars" ,
"stars" ,
"template" ,
"template" ,
"user" ,
"user" ,
"vendor" ,
}
} , public . KnownPublicEntries ... )
reservedUserPatterns = [ ] string { "*.keys" , "*.gpg" }
reservedUserPatterns = [ ] string { "*.keys" , "*.gpg" }
)
)