Skip to content

Commit

Permalink
Merge pull request #11 from mentor-matching-online/remove-auth
Browse files Browse the repository at this point in the history
Remove the need for auth
  • Loading branch information
jonodrew committed Jun 7, 2023
2 parents 630cfe2 + 0e71eb3 commit 088ac68
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions 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

0 comments on commit 088ac68

Please sign in to comment.