Don't use special characters in secrets

This commit is contained in:
allegroai 2021-07-25 14:26:49 +03:00
parent 39ceb5ac5c
commit cb253cff9e

View File

@ -33,5 +33,5 @@ def get_secret_key(length=50):
NOTE: asterisk is not supported due to issues with environment variables containing
asterisks (in case the secret key is stored in an environment variable)
"""
chars = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!@#$%^&(-_=+)'
chars = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'
return get_random_string(length, chars)