mirror of
https://github.com/riwiwa/muzi.git
synced 2026-02-28 11:56:57 -08:00
clean and check username and passw better, handle parseForm errors
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user