remove csrf_token

This commit is contained in:
Thomas Girod 2022-12-26 18:51:04 +01:00
parent 14cd268d69
commit f681c981c6

View File

@ -103,7 +103,6 @@
</p> </p>
{% endif %} {% endif %}
<form method="post" action="{{ settings.SITH_EBOUTIC_ET_URL }}" name="bank-pay-form"> <form method="post" action="{{ settings.SITH_EBOUTIC_ET_URL }}" name="bank-pay-form">
{% csrf_token %}
<template x-data x-for="input in $store.billing_inputs.data"> <template x-data x-for="input in $store.billing_inputs.data">
<input type="hidden" :name="input['key']" :value="input['value']"> <input type="hidden" :name="input['key']" :value="input['value']">
</template> </template>
@ -129,8 +128,7 @@
const create_billing_info_url = '{{ url("counter:create_billing_info", user_id=request.user.id) }}' const create_billing_info_url = '{{ url("counter:create_billing_info", user_id=request.user.id) }}'
const edit_billing_info_url = '{{ url("counter:edit_billing_info", user_id=request.user.id) }}'; const edit_billing_info_url = '{{ url("counter:edit_billing_info", user_id=request.user.id) }}';
const et_data_url = '{{ url("eboutic:et_data") }}' const et_data_url = '{{ url("eboutic:et_data") }}'
let billing_info_exist = let billing_info_exist = {{ "true" if billing_infos else "false" }}
{{ "true" if billing_infos else "false" }}
{% if billing_infos %} {% if billing_infos %}
const et_data = {{ billing_infos|tojson }} const et_data = {{ billing_infos|tojson }}