From c6bc8d0c6d1c1ab5d26b9e47e0248002d22ecf8f Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Sun, 3 Sep 2023 22:02:56 +0530 Subject: moved contact details to customer model for simplicity --- conf/conf.go | 2 -- 1 file changed, 2 deletions(-) (limited to 'conf') diff --git a/conf/conf.go b/conf/conf.go index 6cf0d99..8afe1f4 100644 --- a/conf/conf.go +++ b/conf/conf.go @@ -73,7 +73,6 @@ func validateConf() { } } -// TODO: validate config func init() { viper.SetConfigName("openbills") viper.AddConfigPath("/etc/openbills") @@ -94,7 +93,6 @@ func init() { viper.SetDefault("instance.description", "Libre Billing Software") viper.SetDefault("instance.url", "https://openbills.vidhukant.com") - // TODO: exit if these 3 have unallowed fields viper.SetDefault("username.allowed_characters", "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789.-_") viper.SetDefault("username.min_username_length", 2) viper.SetDefault("username.max_username_length", 20) -- cgit v1.2.3