Mercurial Hosting > chat
diff src/do_login.html.luan @ 89:3053a4fc10be
spy
| author | Franklin Schmidt <fschmidt@gmail.com> |
|---|---|
| date | Thu, 13 Mar 2025 17:56:39 -0600 |
| parents | a47036fd0158 |
| children | 8c3b56bb0c83 |
line wrap: on
line diff
--- a/src/do_login.html.luan Thu Mar 13 16:18:39 2025 -0600 +++ b/src/do_login.html.luan Thu Mar 13 17:56:39 2025 -0600 @@ -35,6 +35,12 @@ <% else user.login() + local spy = Http.request.parameters.spy ~= nil + if spy then + Http.response.set_cookie("spy","yes") + else + Http.response.remove_cookie("spy") + end local with = Http.request.parameters.with local location if with == nil then
