#53 Update password configuration parameters

Added comments for minimum requirements parameters in config.go to provide clarity on their purpose. This was necessary to increase code readability, making it easier for future developer reference.
This commit is contained in:
Winni Neessen 2023-08-05 17:57:06 +02:00
parent af6d87c1a3
commit 8d42651e58
Signed by: wneessen
GPG key ID: 5F3AF39B820C119D

View file

@ -24,9 +24,17 @@ type Config struct {
MaxLength int64 MaxLength int64
// MinLength sets the minimum length for a generated password // MinLength sets the minimum length for a generated password
MinLength int64 MinLength int64
// MinLowerCase represents the minimum amount of lower-case characters that have
// to be part of the generated password
MinLowerCase int64 MinLowerCase int64
// MinNumeric represents the minimum amount of numeric characters that have
// to be part of the generated password
MinNumeric int64 MinNumeric int64
// MinSpecial represents the minimum amount of special characters that have
// to be part of the generated password
MinSpecial int64 MinSpecial int64
// MinUpperCase represents the minimum amount of upper-case characters that have
// to be part of the generated password
MinUpperCase int64 MinUpperCase int64
// Mode holds the different character modes for the Random algorithm // Mode holds the different character modes for the Random algorithm
Mode ModeMask Mode ModeMask