Use logout button instead of logout link

This commit is contained in:
Luca P 2022-03-13 15:40:09 +00:00
parent fc36707be8
commit 5512de52ca

View file

@ -32,10 +32,9 @@ pub async fn admin_dashboard(
<ol>
<li><a href="/admin/password">Change password</a></li>
<li>
<a href="javascript:document.logoutForm.submit()">Logout</a>
<form name="logoutForm" action="/admin/logout" method="post" hidden>
<input hidden type="submit" value="Logout">
</form>
<form name="logoutForm" action="/admin/logout" method="post">
<input type="submit" value="Logout">
</form>
</li>
</ol>
</body>