Fixing functionality

This commit is contained in:
= 2019-09-02 09:42:24 -05:00
parent edb16382f3
commit 25ef7b5675
Signed by: kiichan
GPG key ID: 619DFD67F0976616
14 changed files with 76 additions and 27 deletions

View file

@ -14,6 +14,6 @@
{% if user.has_usable_password %}
<a href="{% url 'admin:password_change' %}">{% trans 'Change password' %}</a> /
{% endif %}
<a href="{% url 'admin-sqrl_manage' %}">{% trans 'Manage SQRL' %}</a> /
<a href="{% url 'sqrl:admin-sqrl_manage' %}">{% trans 'Manage SQRL' %}</a> /
<a href="{% url 'admin:logout' %}">{% trans 'Log out' %}</a>
{% endblock %}

View file

@ -12,7 +12,7 @@
</p>
{% sqrl as session_sqrl %}
{% sqrl_login_dropin session_sqrl %}
{% sqrl_login_dropin session_sqrl login %}
{% endblock %}
{% comment %}

View file

@ -7,11 +7,12 @@
<p>
Already have account?
Login <a href="{% url 'login' %}">here</a> to associate
SQRL identity with existing account.
Login <a href="{% url 'sqrl:login' %}">here</a> to associate
SQRL identity with an existing account.
</p>
<form method="post">
{% csrf_token %}
{{ form.as_p }}
<input type="submit">
</form>

View file

@ -28,13 +28,8 @@
</div>
<input type="hidden" name="nut" value="{{ session_sqrl.nut.nonce }}">
{% if session_sqrl.method == "manage" %}
{# redirect to manage page after successful SQRL transaction #}
<input type="hidden" name="next" value="{% url 'sqrl:manage' %}">
<input type="submit" value="Manage SQRL">
{% else %}
<input type="submit" value="Log in using SQRL">
{% endif %}
<input type="hidden" name="next" value="{{ redir }}">
<input type="submit" value="Authenticate using SQRL">
</form>
</div>
<script>SQRL_CHECK_URL="{% sqrl_status_url_script_tag session_sqrl %}"</script>