Add signup page

This commit is contained in:
Wancat
2022-10-21 14:53:41 +08:00
parent 526a1c4faa
commit 300d49874e
4 changed files with 70 additions and 23 deletions

10
templates/signup.html Normal file
View File

@@ -0,0 +1,10 @@
{{ define "title" }}Sign Up{{ end }}
{{ define "main" }}
<h1>Sign Up</h1>
<form action="/signup" method="POST">
<label>Email: <input type="text" name="email"></label><br>
<label>Password: <input type="password" name="password"></label><br>
{{ with .Error }}<p class="error">{{ . }}</p>{{ end }}
<input type="submit" value="Sign Up">
</form>
{{ end }}