comparison src/invite.js.luan @ 59:8270106644db

add chat.luan
author Franklin Schmidt <fschmidt@gmail.com>
date Tue, 04 Mar 2025 08:22:45 -0700
parents 323ddacc1593
children 3521166513b3
comparison
equal deleted inserted replaced
58:7b6691bd65c3 59:8270106644db
11 return function() 11 return function()
12 local email = Http.request.parameters.email or error() 12 local email = Http.request.parameters.email or error()
13 Io.stdout = Http.response.text_writer() 13 Io.stdout = Http.response.text_writer()
14 if get_user_by_email(email) ~= nil then 14 if get_user_by_email(email) ~= nil then
15 %> 15 %>
16 location = '?with=<%=email%>'; 16 location = 'chat?with=<%=email%>';
17 <% 17 <%
18 return 18 return
19 end 19 end
20 %> 20 %>
21 openInvite(<%=json_string(email)%>); 21 openInvite(<%=json_string(email)%>);