Files
muzi/templates/login.gohtml
2026-02-08 00:51:15 -08:00

31 lines
862 B
Plaintext

<!doctype html>
<html>
<head>
<link rel="stylesheet" href="/files/style.css" type="text/css">
<title>
muzi | Login
</title>
</head>
<body>
<div class=login-form>
<form action="/loginsubmit" 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="Login">
{{if eq .Error "invalid-creds"}}
<div class="login-error">
Invalid credentials. Please try again.
</div>
{{end}}
{{if eq .Error "session"}}
<div class="login-error">
Unable to create session. Please try again.
</div>
{{end}}
</form>
</div>
</body>
</html>