diff options
author | Frederick Muriuki Muriithi | 2024-07-29 13:19:03 -0500 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2024-08-05 09:52:17 -0500 |
commit | 889ff3116c8e412bb8bf969bd9484269ee716cb0 (patch) | |
tree | dd16324b7bc6b135dc60bfb17ecdcefeeb713bb3 /uploader/__init__.py | |
parent | 92d0d0c387fd9d41c8371fcef7d3bd5beacdc2ac (diff) | |
download | gn-uploader-889ff3116c8e412bb8bf969bd9484269ee716cb0.tar.gz |
Enable logout.
Diffstat (limited to 'uploader/__init__.py')
-rw-r--r-- | uploader/__init__.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/uploader/__init__.py b/uploader/__init__.py index 787f220..266495c 100644 --- a/uploader/__init__.py +++ b/uploader/__init__.py @@ -6,7 +6,7 @@ from pathlib import Path from flask import Flask, request from flask_session import Session -from uploader.oauth2.client import authserver_authorise_uri +from uploader.oauth2.client import user_logged_in, authserver_authorise_uri from .entry import entrybp from .upload import upload @@ -47,6 +47,7 @@ def create_app(): app.add_template_global(authserver_authorise_uri) app.add_template_global(lambda: app.config["GN2_SERVER_URL"], name="gn2server_uri") + app.add_template_global(user_logged_in) Session(app) |