Make fields required for login
alex wennerberg alex@alexwennerberg.com
Tue, 26 Jan 2021 19:45:08 -0800
1 files changed,
2 insertions(+),
2 deletions(-)
jump to
M
templates/login.html
→
templates/login.html
@@ -2,11 +2,11 @@ {{template "header" .}}
<h1>🐟Login</h1> <form action="/login" method="post"> <p> - <label for="username">Username or Email</label> + <label for="username" required>Username or Email</label> <input id="username" name="username" size="27" type="text" value="" /> </p> <p> - <label for="password">Password</label> + <label for="password" required>Password</label> <input id="password" name="password" size="27" type="password" value="" /> </p> {{ if .Error }}