diff options
Diffstat (limited to 'app.py')
-rw-r--r-- | app.py | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -18,6 +18,12 @@ if 'SPLINE_ACCOUNT_WEB_SETTINGS' in os.environ: app.all_services = account.SERVICES #TODO: take that from our json file or so +@app.before_request +def session_permanent(): + if app.config.get('PERMANENT_SESSION_LIFETIME'): + session.permanent = True + else: + session.permanent = False @app.before_request def ldap_connect(): |