mirror of
https://github.com/LukeMathWalker/zero-to-production.git
synced 2024-12-04 23:26:32 +00:00
Use logout button instead of logout link
This commit is contained in:
parent
df6bdea82b
commit
65a1261589
1 changed files with 3 additions and 4 deletions
|
@ -32,10 +32,9 @@ pub async fn admin_dashboard(
|
||||||
<ol>
|
<ol>
|
||||||
<li><a href="/admin/password">Change password</a></li>
|
<li><a href="/admin/password">Change password</a></li>
|
||||||
<li>
|
<li>
|
||||||
<a href="javascript:document.logoutForm.submit()">Logout</a>
|
<form name="logoutForm" action="/admin/logout" method="post">
|
||||||
<form name="logoutForm" action="/admin/logout" method="post" hidden>
|
<input type="submit" value="Logout">
|
||||||
<input hidden type="submit" value="Logout">
|
</form>
|
||||||
</form>
|
|
||||||
</li>
|
</li>
|
||||||
</ol>
|
</ol>
|
||||||
</body>
|
</body>
|
||||||
|
|
Loading…
Reference in a new issue