Mercurial Hosting > freedit
diff src/register.html.luan @ 55:c57b84f461ae
login and registration work
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Mon, 28 Nov 2022 20:33:47 -0700 |
parents | 260abd8f8565 |
children |
line wrap: on
line diff
--- a/src/register.html.luan Sun Nov 27 23:46:27 2022 -0700 +++ b/src/register.html.luan Mon Nov 28 20:33:47 2022 -0700 @@ -20,12 +20,13 @@ <html> <head> <% head() %> - <title><%=forum_title%> - Register or Get Password</title> + <title><%=forum_title%> - Register</title> </head> <body> <% header() %> <div content> - <h1>Register or Get Password</h1> + <h1>Register</h1> + <h3>Or Get or Change Password</h3> <% contents() %> @@ -42,14 +43,18 @@ page(function() %> <form> - <label>Email address</label> - <input type="email" name="email" autofocus required> - <input type="submit" value="Register or Get Password"> + <p> + <label>Email address</label> + <input type="email" name="email" autofocus required> + </p> + <p><label clickable><input type=checkbox name=change> change password</label></p> + <p><input type="submit"></p> </form> <% end) else - local user = User.get_or_create_by_email(email) + local change = Http.request.parameters.change ~= nil + local user = User.get_or_create_by_email(email,change) local result = call_mail_api( "login_email", { base_url = base_url() from = forum_title.." <support@freedit.org>"