clean and check username and passw better, handle parseForm errors

This commit is contained in:
2026-02-08 21:56:47 -08:00
parent 32ccdcd5f3
commit 4d77999edb
3 changed files with 54 additions and 17 deletions

View File

@@ -24,6 +24,16 @@
Unable to create session. Please try again.
</div>
{{end}}
{{if eq .Error "userlength"}}
<div class="login-error">
Username length must be greater than 0.
</div>
{{end}}
{{if eq .Error "usertaken"}}
<div class="login-error">
Username must be unique. Please try again.
</div>
{{end}}
</form>
</div>
</body>