diff options
Diffstat (limited to 'uploader/entry.py')
-rw-r--r-- | uploader/entry.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/uploader/entry.py b/uploader/entry.py index 4a02f1e..941200a 100644 --- a/uploader/entry.py +++ b/uploader/entry.py @@ -17,6 +17,7 @@ from flask import ( from uploader.db import species from uploader.db_utils import with_db_connection +from uploader.oauth2.client import user_logged_in entrybp = Blueprint("entry", __name__) @@ -87,7 +88,7 @@ def zip_file_errors(filepath, upload_dir) -> Tuple[str, ...]: @entrybp.route("/", methods=["GET"]) def index(): """Load the landing page""" - return render_template("index.html") + return render_template("index.html" if user_logged_in() else "login.html") @entrybp.route("/upload", methods=["GET", "POST"]) def upload_file(): |