37 lines
1.1 KiB
HTML
37 lines
1.1 KiB
HTML
{% load static %}
|
|
{% load sqrl %}
|
|
<style>
|
|
.sqrl-wrap {
|
|
padding: 15px;
|
|
background-color: #fff;
|
|
text-align: center;
|
|
max-width: 300px;
|
|
border-radius: 5%;
|
|
}
|
|
#sqrl-qr img {
|
|
margin: auto;
|
|
width: 100%;
|
|
padding-top: 3px;
|
|
}
|
|
.sqrl-wrap a {
|
|
font-size: 50%;
|
|
}
|
|
</style>
|
|
<div>
|
|
<form method="get" action="{{ sqrl_session.sqrl_url }}">
|
|
<div class="sqrl-wrap">
|
|
SQRL Login
|
|
<a href="{{ sqrl_session.sqrl_url }}">
|
|
<div id="sqrl-qr" data-sqrl="{{ sqrl_session.sqrl_url }}"></div>
|
|
</a>
|
|
<a href="https://www.grc.com/sqrl/sqrl.htm">What is SQRL?</a>
|
|
</div>
|
|
|
|
<input type="hidden" name="nut" value="{{ sqrl_session.nut.nonce }}">
|
|
<input type="hidden" name="next" value="{{ redir }}">
|
|
<input type="submit" value="Authenticate using SQRL">
|
|
</form>
|
|
</div>
|
|
<script>SQRL_NEXT="{{ redir }}"; SQRL_CHECK_URL="{% sqrl_status_url_script_tag sqrl_session %}"</script>
|
|
<script type="application/javascript" src="{% static 'sqrl/sqrl.js' %}"></script>
|