Change log off to POST (#61)

This commit is contained in:
2026-07-17 22:49:38 -04:00
parent 03dc289991
commit 84025a5eb2
2 changed files with 10 additions and 2 deletions
+6 -1
View File
@@ -244,7 +244,12 @@ module Layout =
]
if app.IsLoggedOn then
li [ _class "nav-item" ] [
a [ _class "nav-link"; _hxPost (relUrl app "user/log-off") ] [ raw "Log Off" ]
form [ _id "mwl-log-off"; _method "post"; _action (relUrl app "user/log-off") ] [
a [ _class "nav-link"; _href (relUrl app "user/log-off")
_onclick "document.getElementById('mwl-log-off').submit(); return false" ] [
raw "Log Off"
]
]
]
else
navLink app "Log On" "user/log-on"