Skip to content

Commit

Permalink
renamed automatic login redirect var; fix #67
Browse files Browse the repository at this point in the history
  • Loading branch information
hahahannes committed Feb 21, 2025
1 parent 464e54b commit 5b87931
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mlflow_oidc_auth/hooks/before_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ def before_request_hook():
if session.get("username") is None:
session.clear()

if config.ENABLE_AUTOMATIC_LOGIN_REDIRECT:
if config.AUTOMATIC_LOGIN_REDIRECT:
return redirect(url_for("login", _external=True))
return render_template(
"auth.html",
Expand Down
2 changes: 1 addition & 1 deletion mlflow_oidc_auth/views/authentication.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def login():

def logout():
session.clear()
if config.ENABLE_AUTOMATIC_LOGIN_REDIRECT:
if config.AUTOMATIC_LOGIN_REDIRECT:
return render_template(
"auth.html",
username=None,
Expand Down

0 comments on commit 5b87931

Please sign in to comment.