all repos — flounder @ b9e66276e699787e46e8e366d66e3c668447804f

A small site builder for the Gemini protocol

Add requird fields to register page
alex wennerberg alex@alexwennerberg.com
Tue, 26 Jan 2021 19:42:25 -0800
commit

b9e66276e699787e46e8e366d66e3c668447804f

parent

aa3a622afdb7e9d30b464b78cc40d0aa728ea96c

1 files changed, 5 insertions(+), 4 deletions(-)

jump to
M templates/register.htmltemplates/register.html

@@ -8,23 +8,24 @@ id="username"

name="username" size="27" type="text" + required value="" />.{{.Config.Host}} </div> <div> <label for="email">Email</label> <br> - <input id="email" name="email" size="27" type="text" value="" /> + <input id="email" name="email" size="27" type="text" required value="" /> </div> <div> <label for="password">Password</label> <br> - <input id="password" name="password" size="27" type="password" value="" /> + <input id="password" name="password" size="27" type="password" required value="" /> </div> <div> <label for="password2">Repeat Password</label> <br> - <input id="password2" name="password2" size="27" type="password" value="" /> + <input id="password2" name="password2" size="27" type="password" required value="" /> </div> <label for="reference">How did you find Flounder? Did an existing user invite you, if so, whom? Could you provide a link to your website or social media?</label> - <textarea id="reference" name="reference" class="textform" rows=4></textarea> + <textarea id="reference" name="reference" class="textform" rows=4 required></textarea> <div class="error">{{ range .Errors}}{{.}}<br>{{end}} </div> <div> <input