Noah Petherbridge
0caf12eb00
* Add "forgot password" workflow. * Add ability to change user email address (confirmation link sent) * Add ability to change user's password. * Add rate limiter to deter brute force login attempts. * Add user deep delete functionality (delete account). * Ping user LastLoginAt every 8 hours for long-lived session cookies. * Add age filters to user search page. * Add sort options to user search (last login, created, username/name)
36 lines
1.2 KiB
HTML
36 lines
1.2 KiB
HTML
{{define "title"}}Log In{{end}}
|
|
{{define "content"}}
|
|
<div class="container">
|
|
<section class="hero is-info is-bold">
|
|
<div class="hero-body">
|
|
<div class="container">
|
|
<h1 class="title">Sign in</h1>
|
|
<h2 class="subtitle">to your account</h2>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
<div class="block p-4">
|
|
<form action="/login" method="POST">
|
|
{{ InputCSRF }}
|
|
|
|
<div class="field">
|
|
<label class="label" for="username">Username or email:</label>
|
|
<input type="text" class="input" name="username" placeholder="username" autocomplete="off">
|
|
</div>
|
|
|
|
<div class="field">
|
|
<label class="label" for="password">Password:</label>
|
|
<input type="password" class="input" name="password" placeholder="password">
|
|
<p class="help">
|
|
<a href="/forgot-password">Forgot?</a>
|
|
</p>
|
|
</div>
|
|
|
|
<div class="field">
|
|
<button type="submit" class="button is-primary">Log in</button>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
{{end}} |