2020-10-30 08:15:00 -07:00
|
|
|
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
|
2021-12-03 08:13:43 -08:00
|
|
|
h1= lang('RESET_PASSWORD_HEADER_VALID')
|
2020-10-30 08:15:00 -07:00
|
|
|
else
|
2021-12-03 08:13:43 -08:00
|
|
|
h1= lang('RESET_PASSWORD_HEADER_INVALID')
|
2020-10-30 08:15:00 -07:00
|
|
|
|
|
|
|
block content
|
|
|
|
if doc
|
|
|
|
if doc.pwExpiry > new Date().getTime()
|
2021-12-03 08:13:43 -08:00
|
|
|
+icon('fas fa-smile-beam', lang('RESET_PASSWORD_GREETING_VALID', doc._id))
|
2020-10-30 08:15:00 -07:00
|
|
|
form(method='POST')
|
|
|
|
.field
|
2021-12-03 08:13:43 -08:00
|
|
|
label.label= lang('RESET_PASSWORD_PASSWORD')
|
2020-10-30 08:15:00 -07:00
|
|
|
.control.has-icons-left
|
2021-12-03 08:13:43 -08:00
|
|
|
input.input(type='password', name='password', placeholder=lang('RESET_PASSWORD_PASSWORD_PLACEHOLDER'))
|
2020-10-30 08:15:00 -07:00
|
|
|
span.icon.is-small.is-left
|
|
|
|
i.fas.fa-lock
|
|
|
|
.field
|
|
|
|
.control
|
|
|
|
input.button.is-primary(type='submit' value=`Reset Password`)
|
|
|
|
else
|
2021-12-03 08:13:43 -08:00
|
|
|
+icon('fas fa-frown-open', lang('RESET_PASSWORD_GREETING_EXPIRED'))
|
2020-10-30 08:15:00 -07:00
|
|
|
else
|
2021-12-03 08:13:43 -08:00
|
|
|
+icon('fas fa-frown-open', lang('RESET_PASSWORD_INVALID'))
|
2020-10-30 08:15:00 -07:00
|
|
|
|