Add requird fields to register page
alex wennerberg alex@alexwennerberg.com
Tue, 26 Jan 2021 19:42:25 -0800
1 files changed,
5 insertions(+),
4 deletions(-)
jump to
M
templates/register.html
→
templates/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