mirror of
https://github.com/xcat2/confluent.git
synced 2024-11-22 17:43:14 +00:00
Fix scenario with undefined passlength
If passwordcomplexity were requested without a passwordlength, things would be a problem.
This commit is contained in:
parent
d9f2c0b266
commit
c53264872a
@ -37,6 +37,8 @@ passcomplexity = cfgfile.get_option('policy', 'passwordcomplexity')
|
||||
passminlength = cfgfile.get_option('policy', 'passwordminlength')
|
||||
if passminlength:
|
||||
passminlength = int(passminlength)
|
||||
else:
|
||||
passminlength = 0
|
||||
if passcomplexity:
|
||||
passcomplexity = int(passcomplexity)
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user