From 2a328e34a4669e7c4951937c9c26a0de91858a98 Mon Sep 17 00:00:00 2001
From: Kevin Morris
Date: Sat, 15 Jan 2022 19:43:41 -0800
Subject: [PATCH] revert request.url.scheme parse change
Signed-off-by: Kevin Morris
---
templates/login.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/templates/login.html b/templates/login.html
index 6a1f2892..c62de43e 100644
--- a/templates/login.html
+++ b/templates/login.html
@@ -18,7 +18,7 @@
{% else %}
- {% if request.headers.get("X-Forwarded-Proto", "http") and config.getboolean("options", "disable_http_login") %}
+ {% if request.url.scheme == "http" and config.getboolean("options", "disable_http_login") %}
{% set https_login = url_base.replace("http://", "https://") + "/login" %}
{{ "HTTP login is disabled. Please %sswitch to HTTPs%s if you want to login."