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."