mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
revert request.url.scheme parse change
Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
parent
ef46a8615b
commit
2a328e34a4
1 changed files with 1 additions and 1 deletions
|
@ -18,7 +18,7 @@
|
||||||
</p>
|
</p>
|
||||||
</form>
|
</form>
|
||||||
{% else %}
|
{% 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" %}
|
{% set https_login = url_base.replace("http://", "https://") + "/login" %}
|
||||||
<p>
|
<p>
|
||||||
{{ "HTTP login is disabled. Please %sswitch to HTTPs%s if you want to login."
|
{{ "HTTP login is disabled. Please %sswitch to HTTPs%s if you want to login."
|
||||||
|
|
Loading…
Add table
Reference in a new issue