Add login template

This commit is contained in:
James Mills
2021-01-31 15:17:26 +10:00
parent 4e7799b1a5
commit a7a928d7dc

View File

@@ -0,0 +1,44 @@
{{define "content"}}
<article class="grid">
<div>
<hgroup>
<h2>Sign in</h2>
<p>Login to your Spyda account on {{ .InstanceName }}</p>
</hgroup>
<form action="/login" method="POST">
<input type="hidden" name="csrf_token" value="{{ $.CSRFToken }}">
<input type="text" name="username" placeholder="Username" aria-label="Username" autocomplete="nickname" autofocus required>
<input type="password" name="password" placeholder="Password" aria-label="Password" autocomplete="current-password" required>
<fieldset>
<label for="rememberme">
<input type="checkbox" id="rememberme" name="rememberme">
Remember me?
</label>
</fieldset>
<button type="submit" class="contrast">Login</button>
<p>
<a href="/resetPassword">Forgotten your password?</a>
</p>
</form>
</div>
<div>
<hgroup>
<h2>How to login to your account</h2>
</hgroup>
<p>
Login to your Spyda account on {{ .InstanceName }} by filling in
the Username and Password you used when you created your account.
</p>
<p>
Check the "Remember Me" box if you don't want to have to keep logging in
every few hours.
</p>
<p>
If you have forgotten your password you can request a
<a href="/resetPassword">Password Reset</a> as long as you remember
your username and email address you signed up with and retain access to
your email (<i>We <b>NEVER</b> store your email address!</i>).
</p>
</div>
</article>
{{end}}