Mercurial Hosting > chat
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 88:7b339b1ccd11 | 89:3053a4fc10be |
|---|---|
| 33 <% if user == nil or user.password ~= password then %> | 33 <% if user == nil or user.password ~= password then %> |
| 34 <p>Login failed</p> | 34 <p>Login failed</p> |
| 35 <% | 35 <% |
| 36 else | 36 else |
| 37 user.login() | 37 user.login() |
| 38 local spy = Http.request.parameters.spy ~= nil | |
| 39 if spy then | |
| 40 Http.response.set_cookie("spy","yes") | |
| 41 else | |
| 42 Http.response.remove_cookie("spy") | |
| 43 end | |
| 38 local with = Http.request.parameters.with | 44 local with = Http.request.parameters.with |
| 39 local location | 45 local location |
| 40 if with == nil then | 46 if with == nil then |
| 41 location = "/" | 47 location = "/" |
| 42 else | 48 else |
