2021-09-13 04:13:07 -04:00
|
|
|
extends ../layout-marketing
|
2014-02-12 05:23:40 -05:00
|
|
|
|
|
|
|
block content
|
2021-07-27 09:23:05 -04:00
|
|
|
main.content.content-alt#main-content
|
2014-06-09 03:54:14 -04:00
|
|
|
.container
|
|
|
|
.row
|
|
|
|
.col-md-6.col-md-offset-3.col-lg-4.col-lg-offset-4
|
|
|
|
.card
|
|
|
|
.page-header
|
2014-07-31 09:01:37 -04:00
|
|
|
h1 #{translate("log_in")}
|
2021-09-16 04:45:19 -04:00
|
|
|
form(data-ol-async-form, name="loginForm", action='/login', method="POST")
|
2014-06-09 03:54:14 -04:00
|
|
|
input(name='_csrf', type='hidden', value=csrfToken)
|
2021-09-24 05:22:37 -04:00
|
|
|
+formMessages()
|
2024-02-02 05:23:33 -05:00
|
|
|
+customFormMessage('invalid-password-retry-or-reset', 'danger')
|
|
|
|
| !{translate('email_or_password_wrong_try_again_or_reset', {}, [{ name: 'a', attrs: { href: '/user/password/reset', 'aria-describedby': 'resetPasswordDescription' } }])}
|
|
|
|
span.sr-only(id='resetPasswordDescription')
|
|
|
|
| #{translate('reset_password_link')}
|
2024-03-04 07:17:06 -05:00
|
|
|
+customValidationMessage('password-compromised')
|
2024-03-21 14:23:13 -04:00
|
|
|
| !{translate('password_compromised_try_again_or_use_known_device_or_reset', {}, [{name: 'a', attrs: {href: 'https://haveibeenpwned.com/passwords', rel: 'noopener noreferrer', target: '_blank'}}, {name: 'a', attrs: {href: '/user/password/reset', target: '_blank'}}])}.
|
2014-06-09 05:19:02 -04:00
|
|
|
.form-group
|
2014-06-17 11:19:40 -04:00
|
|
|
input.form-control(
|
|
|
|
type='email',
|
|
|
|
name='email',
|
2014-06-18 10:23:00 -04:00
|
|
|
required,
|
|
|
|
placeholder='email@example.com',
|
2021-09-15 06:33:49 -04:00
|
|
|
autofocus="true"
|
2014-06-17 11:19:40 -04:00
|
|
|
)
|
2014-06-09 05:19:02 -04:00
|
|
|
.form-group
|
2014-06-17 11:19:40 -04:00
|
|
|
input.form-control(
|
|
|
|
type='password',
|
|
|
|
name='password',
|
2014-06-18 10:23:00 -04:00
|
|
|
required,
|
|
|
|
placeholder='********',
|
2014-06-17 11:19:40 -04:00
|
|
|
)
|
2014-06-09 03:54:14 -04:00
|
|
|
.actions
|
2014-06-18 10:23:00 -04:00
|
|
|
button.btn-primary.btn(
|
2014-07-11 12:08:19 -04:00
|
|
|
type='submit',
|
2021-09-13 04:13:07 -04:00
|
|
|
data-ol-disabled-inflight
|
2014-07-11 12:08:19 -04:00
|
|
|
)
|
2021-09-16 04:45:19 -04:00
|
|
|
span(data-ol-inflight="idle") #{translate("login")}
|
|
|
|
span(hidden data-ol-inflight="pending") #{translate("logging_in")}…
|
2014-07-31 09:01:37 -04:00
|
|
|
a.pull-right(href='/user/password/reset') #{translate("forgot_your_password")}?
|