From a737e2a85026df08d144f1fa7089ffb7c2adde38 Mon Sep 17 00:00:00 2001 From: Stephane de Labrusse Date: Wed, 21 Feb 2024 12:21:22 +0100 Subject: [PATCH 1/2] Update hostname format in validate-input.json --- imageroot/actions/configure-module/validate-input.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/imageroot/actions/configure-module/validate-input.json b/imageroot/actions/configure-module/validate-input.json index ad396bb..28ec857 100644 --- a/imageroot/actions/configure-module/validate-input.json +++ b/imageroot/actions/configure-module/validate-input.json @@ -49,7 +49,8 @@ "host": { "type": "string", "description": "Host name for the wiki, like 'wiki.nethserver.org'", - "format": "idn-hostname" + "format": "hostname", + "pattern": "\\." }, "lets_encrypt": { "type": "boolean", From ed5462f06a896e4320506d38a2486740a1b023d2 Mon Sep 17 00:00:00 2001 From: Stephane de Labrusse Date: Wed, 21 Feb 2024 12:21:35 +0100 Subject: [PATCH 2/2] Add validation messages for host fields --- ui/public/i18n/en/translation.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ui/public/i18n/en/translation.json b/ui/public/i18n/en/translation.json index 8e5c630..5cfafa9 100644 --- a/ui/public/i18n/en/translation.json +++ b/ui/public/i18n/en/translation.json @@ -39,7 +39,9 @@ "disabled": "Disabled", "instance_configuration": "Configure {instance}", "configuring": "Configuring...", - "email_format": "Invalid email address" + "email_format": "Invalid email address", + "host_pattern": "Must be a valid fully qualified domain name", + "host_format": "Must be a valid fully qualified domain name" }, "about": { "title": "About"