Skip to content

Commit

Permalink
fix issue with pyramid.session paramter change
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Lerch <[email protected]>
  • Loading branch information
ryanlerch committed Mar 26, 2024
1 parent e6f9c3d commit 76c91a4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tahrir/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def get_db(request):
# Load secret stuff from secret.ini.
try:
default_path = os.path.abspath("secret.ini")
secret_path = settings.get('secret_config_path', default_path)
secret_path = settings.get('tahrir.secret_config_path', default_path)
# TODO: There is a better way to log this message than print.
print("Reading secrets from %r" % secret_path)
parser = ConfigParser()
Expand All @@ -111,8 +111,8 @@ def get_db(request):
authz_policy = ACLAuthorizationPolicy()
session_factory = SignedCookieSessionFactory(
secret=settings['session.secret'],
cookie_secure=asbool(settings.get('tahrir.secure_cookies', True)),
cookie_httponly=asbool(settings.get('tahrir.httponly_cookies', True)),
secure=asbool(settings.get('tahrir.secure_cookies', True)),
httponly=asbool(settings.get('tahrir.httponly_cookies', True)),
)

# Configure our cache that we instantiated earlier.
Expand Down

0 comments on commit 76c91a4

Please sign in to comment.