Skip to content
Snippets Groups Projects
Commit 62bd21ad authored by Patrick Jentsch's avatar Patrick Jentsch
Browse files

Update Flask Hashids

parent 7a9e6f5d
No related branches found
No related tags found
No related merge requests found
...@@ -57,6 +57,18 @@ HOST_DOCKER_GID= ...@@ -57,6 +57,18 @@ HOST_DOCKER_GID=
# ASSETS_DEBUG= # ASSETS_DEBUG=
################################################################################
# Flask-Hashids #
# https://github.com/Pevtrick/Flask-Hashids #
################################################################################
# DEFAULT: 16
# HASHIDS_MIN_LENGTH=
# NOTE: Use this bash command `python -c "import uuid; print(uuid.uuid4().hex)"`
# It is strongly recommended that this is NEVER the same as the SECRET_KEY
HASHIDS_SALT=
################################################################################ ################################################################################
# Flask-Login # # Flask-Login #
# https://flask-login.readthedocs.io/en/latest/ # # https://flask-login.readthedocs.io/en/latest/ #
......
...@@ -36,6 +36,7 @@ class Config: ...@@ -36,6 +36,7 @@ class Config:
''' # Flask-Hashids ''' ''' # Flask-Hashids '''
HASHIDS_MIN_LENGTH = 16 HASHIDS_MIN_LENGTH = 16
HASHIDS_SALT=os.environ.get('HASHIDS_SALT')
''' # Flask-Login # ''' ''' # Flask-Login # '''
REMEMBER_COOKIE_SECURE = \ REMEMBER_COOKIE_SECURE = \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment