aboutsummaryrefslogtreecommitdiff
path: root/conf/conf.go
diff options
context:
space:
mode:
authorVidhu Kant Sharma <vidhukant@vidhukant.com>2023-09-03 00:19:03 +0530
committerVidhu Kant Sharma <vidhukant@vidhukant.com>2023-09-03 00:19:03 +0530
commit616a151764fd1780eb0b6dc039d5a21539a8a01a (patch)
tree454f73e06880c3635c3f88a5787fd8fbc1c2b363 /conf/conf.go
parent65cb3603ad2682deacff47a72d9050e584a00488 (diff)
added login with id
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)
}