aboutsummaryrefslogtreecommitdiff
path: root/conf
diff options
context:
space:
mode:
authorVidhu Kant Sharma <vidhukant@vidhukant.com>2023-09-03 22:02:56 +0530
committerVidhu Kant Sharma <vidhukant@vidhukant.com>2023-09-03 22:02:56 +0530
commitc6bc8d0c6d1c1ab5d26b9e47e0248002d22ecf8f (patch)
treea80b66210b6f45aaa8b3c0c39baeda451b38f765 /conf
parent6922e09f46a24b7bd70db5e78ab1c4a77e59303c (diff)
moved contact details to customer model for simplicity
Diffstat (limited to 'conf')
-rw-r--r--conf/conf.go2
1 files changed, 0 insertions, 2 deletions
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)