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
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
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")
label(for="password") New Password
input.form-control#password(type="password", name="password")
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