Use a POST for "warn me" and only generate the ticket after the "warn me" page

This commit is contained in:
Valentin Samir
2016-06-03 14:11:07 +02:00
parent 851f32bfd4
commit 20f11eca77
3 changed files with 32 additions and 9 deletions

View File

@ -4,6 +4,10 @@
{% load i18n %}
{% block content %}
{% bootstrap_button _('Connect to the service') size='lg' button_class="btn-primary btn-block" href=service_ticket_url %}
<form class="form-signin" method="post">
{% csrf_token %}
{% bootstrap_form form %}
{% bootstrap_button _('Login') size='lg' button_type="submit" button_class="btn-primary btn-block"%}
</form>
{{request.session.authenticated}}
{% endblock %}