tulip/cmd/red-tulip/pages/login.go.html

43 lines
1.5 KiB
HTML
Raw Normal View History

2023-09-06 22:20:09 +01:00
<!DOCTYPE html>
<html lang="en">
<head>
<title>{{.ServiceName}}</title>
2023-12-17 16:03:13 +00:00
<link rel="stylesheet" href="/theme/style.css">
2023-09-06 22:20:09 +01:00
</head>
<body>
<header>
<h1>{{.ServiceName}}</h1>
2023-09-06 22:20:09 +01:00
</header>
<main>
2023-09-24 18:24:16 +01:00
{{if eq .Mismatch "1"}}
<p>Invalid username or password</p>
{{end}}
{{if eq .Mismatch "2"}}
<p>Check your inbox for a verification email</p>
{{end}}
<form method="POST" action="/login">
<input type="hidden" name="redirect" value="{{.Redirect}}"/>
2023-09-06 22:20:09 +01:00
<div>
<label for="field_username">User Name:</label>
<input type="text" name="username" id="field_username" {{if gt (len .LoginName) 0}} value="{{.LoginName}}" {{else}} autofocus {{end}} required/>
2023-09-06 22:20:09 +01:00
</div>
<div>
<label for="field_password">Password:</label>
<input type="password" name="password" id="field_password" {{if gt (len .LoginName) 0}} autofocus {{end}} required/>
2023-09-06 22:20:09 +01:00
</div>
<button type="submit">Login</button>
</form>
2023-09-29 16:37:23 +01:00
<form method="POST" action="/reset-password">
<p>Enter your email address below to receive an email with instructions on how to reset your password.</p>
<p>Please note this only works if your email address is already verified.</p>
<div>
<label for="field_email">Email:</label>
<input type="email" name="email" id="field_email" required/>
</div>
<button type="submit">Send Reset Password Email</button>
</form>
2023-09-06 22:20:09 +01:00
</main>
</body>
</html>