2
0
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:
Jarrod Johnson 2019-07-11 10:53:43 -04:00
parent d9f2c0b266
commit c53264872a

View File

@ -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: