Skip to content
Snippets Groups Projects
Unverified Commit 35325993 authored by Robin Sonnabend's avatar Robin Sonnabend
Browse files

Fix session cookie config check

parent 159361d8
No related branches found
No related tags found
No related merge requests found
......@@ -147,7 +147,7 @@ def check_database(
"database: {}".format(SQLALCHEMY_DATABASE_URI, error))
def check_security(SECRET_KEY, SECURITY_KEY, SESSION_PROTECTION):
def check_security(SECRET_KEY, SECURITY_KEY, SESSION_PROTECTION, SESSION_COOKIE_SECURE, SESSION_COOKIE_HTTPONLY, SESSION_COOKIE_SAMESITE):
MIN_KEY_LENGTH = 20
if len(SECRET_KEY) < MIN_KEY_LENGTH:
raise ValueError(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment