This repository has been archived on 2022-11-26. You can view files and clone it, but cannot push or open issues or pull requests.
IcyNet.eu/views/user/password_new.pug

37 lines
1.1 KiB
Plaintext

extends ../layout.pug
block title
|Icy Network - Change User Password
block body
.container.mt-4.mb-4
if user
nav(aria-label="breadcrumb")
ol.breadcrumb
li.breadcrumb-item
a(href="/") Home
li.breadcrumb-item
a(href="/user/manage") User Settings
li.breadcrumb-item.active(aria-current="page") Change Password
h1 Change Your Password
if message.text
if message.error
.alert.alert-danger
span #{message.text}
else
.alert.alert-success
span #{message.text}
form#loginForm(method="POST", action="")
input(type="hidden", name="csrf", value=csrf)
if !token
.form-group
label(for="password_old") Current Password
input.form-control#password_old(type="password", name="password_old")
.form-group
label(for="password") New Password
input.form-control#password(type="password", name="password")
.form-group
label(for="password_repeat") Repeat New Password
input.form-control#password_repeat(type="password", name="password_repeat", autocomplete="off")
small#repeatcheck(style="display: none")
button.btn.btn-primary(type="submit") Change