Merge pull request #540 from ae-utbm/3dsv2-encore-un-patch

remove csrf_token
This commit is contained in:
thomas girod 2022-12-26 18:55:41 +01:00 committed by GitHub
commit 7079761ffe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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 }}