variable to personalise password length
This commit is contained in:
parent
3085bf67d6
commit
09cd0a4e4c
|
@ -117,9 +117,9 @@ else:
|
||||||
PASSWORD_URL = config.get('PASSWORD_URL', 'https://localhost:8001/')
|
PASSWORD_URL = config.get('PASSWORD_URL', 'https://localhost:8001/')
|
||||||
|
|
||||||
if 'PASSWORD_LENGTH' in environ:
|
if 'PASSWORD_LENGTH' in environ:
|
||||||
PASSWORD_LENGTH = environ['PASSWORD_LENGTH']
|
PASSWORD_LENGTH = int(environ['PASSWORD_LENGTH'])
|
||||||
else:
|
else:
|
||||||
PASSWORD_LENGTH = config.get('PASSWORD_LENGTH', 20)
|
PASSWORD_LENGTH = int(config.get('PASSWORD_LENGTH', 20))
|
||||||
if 'PKI_ADMIN_PASSWORD' in environ:
|
if 'PKI_ADMIN_PASSWORD' in environ:
|
||||||
PKI_ADMIN_PASSWORD = environ['PKI_ADMIN_PASSWORD']
|
PKI_ADMIN_PASSWORD = environ['PKI_ADMIN_PASSWORD']
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue