2023-09-06 22:20:09 +01:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
|
|
|
<head>
|
2023-09-15 13:06:31 +01:00
|
|
|
<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>
|
2023-09-15 13:06:31 +01:00
|
|
|
<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}}
|
2023-09-09 01:38:10 +01:00
|
|
|
<form method="POST" action="/login">
|
|
|
|
<input type="hidden" name="redirect" value="{{.Redirect}}"/>
|
2023-09-06 22:20:09 +01:00
|
|
|
<div>
|
2023-09-09 01:38:10 +01:00
|
|
|
<label for="field_username">User Name:</label>
|
2023-10-04 21:51:11 +01:00
|
|
|
<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>
|
2023-09-09 01:38:10 +01:00
|
|
|
<label for="field_password">Password:</label>
|
2023-10-04 21:51:11 +01:00
|
|
|
<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>
|