This repository has been archived on 2022-08-26. You can view files and clone it, but cannot push or open issues or pull requests.
gosocial/web/templates/account/login.html
Noah Petherbridge 2a8a1df6ab Initial commit
* Initial codebase (lot of work!)
* Uses vanilla Go net/http and implements by hand: session cookies
  backed by Redis; log in/out; CSRF protection; email verification flow;
  initial database models (User table)
2022-08-09 22:32:19 -07:00

26 lines
838 B
HTML

{{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-2">
<form action="/login" method="POST">
{{ InputCSRF }}
<label for="username">Username or email:</label>
<input type="text" class="input" name="username" placeholder="username" autocomplete="off">
<label for="password">Password:</label>
<input type="password" class="input" name="password" placeholder="password">
<button type="submit" class="button is-primary">Log in</button>
</form>
</div>
</div>
{{end}}