diff options
| author | Leonardo Bishop <me@leonardobishop.net> | 2025-07-14 01:24:40 +0100 |
|---|---|---|
| committer | Leonardo Bishop <me@leonardobishop.net> | 2025-07-14 01:24:40 +0100 |
| commit | 08a3fb8a2b0281c3c329b33215ec7f8866add606 (patch) | |
| tree | ff8a5413449ea198bc063bf0099fc025ea49c82b /web/command/handler/create.go | |
| parent | 684787bcb72aece2aa914597a3bc8788432e66f7 (diff) | |
Add authentication and ability to change host
Diffstat (limited to 'web/command/handler/create.go')
| -rw-r--r-- | web/command/handler/create.go | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/web/command/handler/create.go b/web/command/handler/create.go index 21c6b1a..46c7779 100644 --- a/web/command/handler/create.go +++ b/web/command/handler/create.go @@ -36,10 +36,6 @@ func PostCreate(mainConfig *config.MainConfig, index *index.SiteIndex) func(http return html.CreatePage("", "A name must be specified", formValues), nil } - if host == "" { - return html.CreatePage("", "A host must be specified", formValues), nil - } - site, err := site.CreateNewSite(name, path.Join(constants.SysDataDir, "sites"), host) if err != nil { |
