aboutsummaryrefslogtreecommitdiff
path: root/conf
diff options
context:
space:
mode:
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)