comparison src/login.html.luan @ 3:2c63b10781e1

add login
author Franklin Schmidt <fschmidt@gmail.com>
date Thu, 24 Oct 2024 21:43:44 -0600
parents src/index.html.luan@ee1f91e67509
children a49866b52cc2
comparison
equal deleted inserted replaced
2:ee1f91e67509 3:2c63b10781e1
1 local Luan = require "luan:Luan.luan"
2 local error = Luan.error
3 local Io = require "luan:Io.luan"
4 local Http = require "luan:http/Http.luan"
5 local Shared = require "site:/lib/Shared.luan"
6 local head = Shared.head or error()
7 local header = Shared.header or error()
8
9
10 return function()
11 Io.stdout = Http.response.text_writer()
12 %>
13 <!doctype html>
14 <html>
15 <head>
16 <% head() %>
17 </head>
18 <body>
19 <% header() %>
20 <div content>
21 <h1>Login / Register</h1>
22 <p>A link to login will be emailed to you.</p>
23 <form page onsubmit="ajaxForm('/login.js',this)" action="javascript:">
24 <p>
25 <label prompt>Your email address</label>
26 <input type=email name=email required autofocus>
27 </p>
28 <p>
29 <input type=submit>
30 </p>
31 </form>
32 </div>
33 </body>
34 </html>
35 <%
36 end