icynet-auth-server/views/login/login.pug

28 lines
925 B
Plaintext

extends ../partials/layout.pug
block title
|Icy Network | Log in
block body
include ../partials/logo.pug
div.container
div.center-box
h1 Log in
if message.text
if message.error
.alert.alert-danger
span #{message.text}
else
.alert.alert-success
span #{message.text}
form(method="post")
div.form-container
input#csrf(type="hidden", name="csrf", value=csrf)
label.form-label(for="username") Username
input.form-control#username(type="text", name="username", placeholder="Username", value=form.username)
label.form-label(for="password") Password
input.form-control#password(type="password", name="password", placeholder="Password")
button.btn.btn-primary(type="submit") Log in
a.btn.btn-link.align-self-end(type="button" href="/register") Create a new account