mirror of
https://github.com/wneessen/apg-go.git
synced 2024-12-23 03:30:39 +01:00
#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:
parent
af6d87c1a3
commit
8d42651e58
1 changed files with 11 additions and 3 deletions
14
config.go
14
config.go
|
@ -23,10 +23,18 @@ type Config struct {
|
|||
// MaxLength sets the maximum length for a generated password
|
||||
MaxLength int64
|
||||
// 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
|
||||
MinNumeric int64
|
||||
MinSpecial int64
|
||||
// MinNumeric represents the minimum amount of numeric characters that have
|
||||
// to be part of the generated password
|
||||
MinNumeric int64
|
||||
// MinSpecial represents the minimum amount of special characters that have
|
||||
// to be part of the generated password
|
||||
MinSpecial int64
|
||||
// MinUpperCase represents the minimum amount of upper-case characters that have
|
||||
// to be part of the generated password
|
||||
MinUpperCase int64
|
||||
// Mode holds the different character modes for the Random algorithm
|
||||
Mode ModeMask
|
||||
|
|
Loading…
Reference in a new issue