2022-03-10 18:31:05 +00:00
|
|
|
extends ../partials/layout.pug
|
|
|
|
|
|
|
|
block title
|
2022-03-19 10:25:37 +00:00
|
|
|
|Set a new password | Icy Network
|
2022-03-10 18:31:05 +00:00
|
|
|
|
|
|
|
block body
|
|
|
|
include ../partials/logo.pug
|
|
|
|
div.container
|
|
|
|
div.center-box
|
|
|
|
if token
|
|
|
|
h1 Set a new password
|
|
|
|
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
|
2022-03-20 14:50:12 +00:00
|
|
|
input#csrf(type="hidden", name="_csrf", value=csrf)
|
2022-03-10 18:31:05 +00:00
|
|
|
label.form-label(for="password") New password
|
2024-06-14 14:02:46 +00:00
|
|
|
input.form-control#password(
|
|
|
|
type="password",
|
|
|
|
name="password",
|
|
|
|
autocomplete="new-password",
|
|
|
|
autofocus,
|
|
|
|
placeholder="Password"
|
|
|
|
)
|
2022-03-20 12:09:36 +00:00
|
|
|
small.form-hint Must be at least 8 characters long, contain a capital and lowercase letter and a number.
|
2024-06-14 14:02:46 +00:00
|
|
|
|
2022-03-10 18:31:05 +00:00
|
|
|
label.form-label(for="password_repeat") Repeat new password
|
2024-06-14 14:02:46 +00:00
|
|
|
input.form-control#password_repeat(
|
|
|
|
type="password",
|
|
|
|
name="password_repeat",
|
|
|
|
autocomplete="new-password",
|
|
|
|
placeholder="Password"
|
|
|
|
)
|
2022-03-10 18:31:05 +00:00
|
|
|
button.btn.btn-primary(type="submit") Set password
|
|
|
|
else
|
|
|
|
h1 Reset password
|
2024-06-14 14:02:46 +00:00
|
|
|
p If you have forgotten your password, please enter your account email address and we will send you a link to recover it.
|
2022-03-10 18:31:05 +00:00
|
|
|
form(method="post")
|
|
|
|
div.form-container
|
2022-03-20 14:50:12 +00:00
|
|
|
input#csrf(type="hidden", name="_csrf", value=csrf)
|
2022-03-10 18:31:05 +00:00
|
|
|
label.form-label(for="email") Email address
|
2024-06-14 14:02:46 +00:00
|
|
|
input.form-control#email(
|
|
|
|
type="email",
|
|
|
|
name="email",
|
|
|
|
autofocus,
|
|
|
|
placeholder="Email address"
|
|
|
|
)
|
2022-03-10 18:31:05 +00:00
|
|
|
button.btn.btn-primary(type="submit") Send recovery email
|
|
|
|
a.btn.btn-link.align-self-end(type="button" href="/login") Log in instead
|