aboutsummaryrefslogtreecommitdiff
path: root/config/functions.go
diff options
context:
space:
mode:
Diffstat (limited to 'config/functions.go')
-rw-r--r--config/functions.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/config/functions.go b/config/functions.go
index 58ab717..1a49226 100644
--- a/config/functions.go
+++ b/config/functions.go
@@ -56,3 +56,7 @@ func loadConfigFile(configFilePath string) error {
func parseSection(target any) error {
return toml.Parse(target)
}
+
+func isAuthEnabled() bool {
+ return Server.Username != "" && Server.Password != ""
+}