From 616a151764fd1780eb0b6dc039d5a21539a8a01a Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Sun, 3 Sep 2023 00:19:03 +0530 Subject: added login with id --- conf/conf.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'conf/conf.go') 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) } -- cgit v1.2.3