34 lines
1,017 B
Text
34 lines
1,017 B
Text
extends layout.pug
|
|
|
|
mixin icon(c, text)
|
|
.columns.is-vcentered.is-mobile
|
|
.column.is-narrow
|
|
span.icon.is-large
|
|
i.fa-3x(class=c)
|
|
.column #{text}
|
|
|
|
block title
|
|
if doc
|
|
h1= lang('RESET_PASSWORD_HEADER_VALID')
|
|
else
|
|
h1= lang('RESET_PASSWORD_HEADER_INVALID')
|
|
|
|
block content
|
|
if doc
|
|
if doc.pwExpiry > new Date().getTime()
|
|
+icon('fas fa-smile-beam', lang('RESET_PASSWORD_GREETING_VALID', doc._id))
|
|
form(method='POST')
|
|
.field
|
|
label.label= lang('RESET_PASSWORD_PASSWORD')
|
|
.control.has-icons-left
|
|
input.input(type='password', name='password', placeholder=lang('RESET_PASSWORD_PASSWORD_PLACEHOLDER'))
|
|
span.icon.is-small.is-left
|
|
i.fas.fa-lock
|
|
.field
|
|
.control
|
|
input.button.is-primary(type='submit' value=`Reset Password`)
|
|
else
|
|
+icon('fas fa-frown-open', lang('RESET_PASSWORD_GREETING_EXPIRED'))
|
|
else
|
|
+icon('fas fa-frown-open', lang('RESET_PASSWORD_INVALID'))
|
|
|