mirror of
https://github.com/ae-utbm/sith.git
synced 2026-10-18 16:38:59 +00:00
make logout a POST operation
This commit is contained in:
1 parent
aaa8c4ba67
commit
5c5755d4a6
3 files changed
+30
-7
No files matched your search
@@ -59,7 +59,10 @@
|
||||
</div>
|
||||
<div class="links">
|
||||
<a href="{{ url('core:user_tools') }}">{% trans %}Tools{% endtrans %}</a>
|
||||
<a href="{{ url('core:logout') }}">{% trans %}Logout{% endtrans %}</a>
|
||||
<form id="logout-form" method="post" action="{{ url("core:logout") }}">
|
||||
{% csrf_token %}
|
||||
<button type="submit">{% trans %}Logout{% endtrans %}</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<a
|
||||
|
||||
Reference in new issue
Block a user