aboutsummaryrefslogtreecommitdiff
path: root/conf/conf.go
diff options
context:
space:
mode:
Diffstat (limited to 'conf/conf.go')
-rw-r--r--conf/conf.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/conf/conf.go b/conf/conf.go
index 6f9288e..9c3d328 100644
--- a/conf/conf.go
+++ b/conf/conf.go
@@ -40,7 +40,7 @@ func init() {
viper.SetDefault("port", "8765")
viper.SetDefault("security.min_password_length", 12)
- viper.SetDefault("security.max_password_length", 128)
+ viper.SetDefault("security.max_password_length", 72)
viper.SetDefault("instance.title", "OpenBills")
viper.SetDefault("instance.description", "Libre Billing Software")
@@ -50,4 +50,6 @@ func init() {
viper.SetDefault("username.allowed_characters", "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789.-_")
viper.SetDefault("username.min_username_length", 2)
viper.SetDefault("username.max_username_length", 20)
+
+ viper.SetDefault("cryptography.password_hashing_cost", 14)
}