django-sqrl-2/sqrl/templates/sqrl/sqrl-dropin.html

28 lines
1.2 KiB
HTML
Raw Normal View History

2019-09-02 02:03:23 -05:00
{% load static %}
{% load sqrl %}
2019-09-14 04:38:14 -05:00
<link type="text/css" rel="stylesheet" href="{% static 'sqrl/dropin.css' %}"/>
{% if sqrl_session.sqrl_url %}
2019-09-14 04:38:14 -05:00
<div class="sqrl-parent">
<form class="sqrl-form" method="get" action="{{ sqrl_session.sqrl_url }}">
2019-09-02 02:03:23 -05:00
<div class="sqrl-wrap">
SQRL Login
2019-09-04 21:08:57 -05:00
<a href="{{ sqrl_session.sqrl_url }}">
<div id="sqrl-qr" data-sqrl="{{ sqrl_session.sqrl_url }}"></div>
2019-09-02 02:03:23 -05:00
</a>
<a href="https://www.grc.com/sqrl/sqrl.htm">What is SQRL?</a>
</div>
2019-09-04 21:08:57 -05:00
<input type="hidden" name="nut" value="{{ sqrl_session.nut.nonce }}">
2019-09-02 09:42:24 -05:00
<input type="hidden" name="next" value="{{ redir }}">
<input type="submit" value="Authenticate using SQRL">
2019-09-02 02:03:23 -05:00
</form>
</div>
{% 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 %}
2019-09-04 21:08:57 -05:00
<script>SQRL_NEXT="{{ redir }}"; SQRL_CHECK_URL="{% sqrl_status_url_script_tag sqrl_session %}"</script>
2019-09-02 04:56:45 -05:00
<script type="application/javascript" src="{% static 'sqrl/sqrl.js' %}"></script>