mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
change(fastapi): remove the GET /logout route; replaced with POST
Had to add some additional CSS in to style a form button the same as <a> links are styled. Closes #188 Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
parent
44f2366675
commit
69eb17cb0d
4 changed files with 25 additions and 17 deletions
|
@ -45,9 +45,12 @@
|
|||
|
||||
{# All logged in users see Logout #}
|
||||
<li>
|
||||
<a href="/logout?next={{ next }}">
|
||||
{% trans %}Logout{% endtrans %}
|
||||
</a>
|
||||
<form action="/logout" method="post" class="link">
|
||||
<input type="hidden" name="next" value="{{ next }}" />
|
||||
<button type="submit">
|
||||
{% trans %}Logout{% endtrans %}
|
||||
</button>
|
||||
</form>
|
||||
</li>
|
||||
{% else %}
|
||||
{# All guest users see Register #}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue