Remove obsolete "qrl" schema, enforce SSL connections
This commit is contained in:
parent
9268fce1af
commit
6203bb2fab
8 changed files with 49 additions and 10 deletions
|
@ -6,6 +6,7 @@
|
|||
{{ block.super }}
|
||||
<link rel="stylesheet" type="text/css" href="{% static 'admin/css/login.css' %}"/>
|
||||
<link rel="stylesheet" type="text/css" href="{% static 'admin/sqrl.css' %}"/>
|
||||
<link rel="stylesheet" type="text/css" href="{% static 'sqrl/dropin.css' %}"/>
|
||||
{% endblock %}
|
||||
|
||||
{% block bodyclass %}{{ block.super }} login{% endblock %}
|
||||
|
@ -58,13 +59,14 @@
|
|||
</form>
|
||||
|
||||
{% sqrl as sqrl_session %}
|
||||
{% if sqrl_session.sqrl_url %}
|
||||
|
||||
<form method="get" action="{{ sqrl_session.sqrl_url }}" class="sqrl">
|
||||
<p class="align-center or">
|
||||
<span class="line-center">or</span>
|
||||
</p>
|
||||
|
||||
<div>
|
||||
<div class="sqrl-parent">
|
||||
<h3>Login using SQRL</h3>
|
||||
|
||||
<div class="sqrl-wrap">
|
||||
|
@ -87,5 +89,10 @@
|
|||
document.getElementById('id_username').focus()
|
||||
</script>
|
||||
<script type="application/javascript" src="{% static 'sqrl/sqrl.js' %}"></script>
|
||||
{% else %}
|
||||
<div class="sqrl-parent">
|
||||
<p><strong>You are not connected on a secure connection. For your safety, SQRL login is disabled. It is advised that you do not log into this website at all until you are connected via a HTTPS connection.</strong></p>
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue