From 0e71eb30fa516199e5bc6ae544c6cfef6199c058 Mon Sep 17 00:00:00 2001 From: "jonathan.kerr" Date: Mon, 5 Jun 2023 18:00:30 +0100 Subject: [PATCH] Remove the need for auth At least while we're still disseminating the link to small groups of users and it's not permanent --- mentor_match_web/app/main/__init__.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/mentor_match_web/app/main/__init__.py b/mentor_match_web/app/main/__init__.py index 1b28ee6a..d4081bca 100644 --- a/mentor_match_web/app/main/__init__.py +++ b/mentor_match_web/app/main/__init__.py @@ -1,12 +1,12 @@ -from flask import Blueprint, url_for, request, redirect +from flask import Blueprint main_bp = Blueprint("main", __name__) -@main_bp.before_request -def check_login(): - if not (request.cookies.get("logged-in") or request.path == url_for("auth.login")): - return redirect(url_for("auth.login")) +# @main_bp.before_request +# def check_login(): +# if not (request.cookies.get("logged-in") or request.path == url_for("auth.login")): +# return redirect(url_for("auth.login")) from app.main import routes # noqa: E402,F401