Skip to content

Commit

Permalink
further conditional verifications
Browse files Browse the repository at this point in the history
  • Loading branch information
ReimarBauer committed Feb 18, 2025
1 parent f2549d8 commit 5d5da1c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mslib/mscolab/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,11 +236,13 @@ def create_or_update_idp_user(email, username, token, authentication_backend):


@APP.route('/')
@conditional_decorator(auth.login_required, mscolab_settings.__dict__.get('enable_basic_http_authentication', False))
def home():
return render_template("/index.html")


@APP.route("/status")
@conditional_decorator(auth.login_required, mscolab_settings.__dict__.get('enable_basic_http_authentication', False))
def hello():
if request.authorization is not None:
if mscolab_settings.__dict__.get('enable_basic_http_authentication', False):
Expand Down

0 comments on commit 5d5da1c

Please sign in to comment.