variable to personalise password length

This commit is contained in:
Emmanuel Garette 2021-05-11 18:58:43 +02:00
parent 3085bf67d6
commit 09cd0a4e4c

View File

@ -117,9 +117,9 @@ else:
PASSWORD_URL = config.get('PASSWORD_URL', 'https://localhost:8001/')
if 'PASSWORD_LENGTH' in environ:
PASSWORD_LENGTH = environ['PASSWORD_LENGTH']
PASSWORD_LENGTH = int(environ['PASSWORD_LENGTH'])
else:
PASSWORD_LENGTH = config.get('PASSWORD_LENGTH', 20)
PASSWORD_LENGTH = int(config.get('PASSWORD_LENGTH', 20))
if 'PKI_ADMIN_PASSWORD' in environ:
PKI_ADMIN_PASSWORD = environ['PKI_ADMIN_PASSWORD']
else: