summaryrefslogtreecommitdiff
path: root/internal/configuration/validator/const.go
diff options
context:
space:
mode:
authorJames Elliott <james-d-elliott@users.noreply.github.com>2023-01-22 19:58:07 +1100
committerGitHub <noreply@github.com>2023-01-22 19:58:07 +1100
commita566c16d08677b03d3c6b66fd348ceec0bd23dda (patch)
tree95f348ca1e32b339e49582be7bdaa7d0908a3818 /internal/configuration/validator/const.go
parentdf52b1b4c493650b050be7944d96fccc86c59cb3 (diff)
feat(web): privacy policy url (#4625)
This allows users to customize a privacy policy URL at the bottom of the login view. Closes #2639
Diffstat (limited to 'internal/configuration/validator/const.go')
-rw-r--r--internal/configuration/validator/const.go15
1 files changed, 5 insertions, 10 deletions
diff --git a/internal/configuration/validator/const.go b/internal/configuration/validator/const.go
index 9f68a32cb..bbc59a87c 100644
--- a/internal/configuration/validator/const.go
+++ b/internal/configuration/validator/const.go
@@ -295,21 +295,16 @@ const (
)
const (
+ errPrivacyPolicyEnabledWithoutURL = "privacy_policy: option 'policy_url' must be provided when the option 'enabled' is true"
+ errFmtPrivacyPolicyURLNotHTTPS = "privacy_policy: option 'policy_url' must have the 'https' scheme but it's configured as '%s'"
+)
+
+const (
errFmtDuoMissingOption = "duo_api: option '%s' is required when duo is enabled but it is missing"
)
// Error constants.
const (
- /*
- errFmtDeprecatedConfigurationKey = "the %s configuration option is deprecated and will be " +
- "removed in %s, please use %s instead"
-
- Uncomment for use when deprecating keys.
-
- TODO: Create a method from within Koanf to automatically remap deprecated keys and produce warnings.
- TODO (cont): The main consideration is making sure we do not overwrite the destination key name if it already exists.
- */
-
errFmtInvalidDefault2FAMethod = "option 'default_2fa_method' is configured as '%s' but must be one of " +
"the following values: '%s'"
errFmtInvalidDefault2FAMethodDisabled = "option 'default_2fa_method' is configured as '%s' " +