mirror of
https://github.com/riwiwa/muzi.git
synced 2026-02-28 03:46:57 -08:00
41 lines
1.2 KiB
Plaintext
41 lines
1.2 KiB
Plaintext
<!doctype html>
|
|
<html>
|
|
<head>
|
|
<link rel="stylesheet" href="/files/style.css" type="text/css">
|
|
<title>
|
|
muzi | Create Account
|
|
</title>
|
|
</head>
|
|
<body>
|
|
<div class=login-form>
|
|
<form action="/createaccountsubmit" method="POST">
|
|
<label for="uname">Username:</label>
|
|
<input type="text" id="uname" name="uname"> <br> <br>
|
|
<label for="pass">Password:</label>
|
|
<input type="password" id="pass" name="pass"> <br> <br>
|
|
<input type="submit" value="Create Account">
|
|
{{if eq .Error "length"}}
|
|
<div class="login-error">
|
|
Password must be 8-64 chars (inclusive).
|
|
</div>
|
|
{{end}}
|
|
{{if eq .Error "session"}}
|
|
<div class="login-error">
|
|
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>
|
|
</html>
|