2019-07-13 19:15:35 +00:00
|
|
|
extends master.pug
|
|
|
|
|
|
|
|
block body
|
|
|
|
#root
|
2019-07-14 00:27:31 +00:00
|
|
|
.login-deprecated!= t('outdatedBrowserWarning', { modernBrowser: '<a href="https://bestvpn.org/outdatedbrowser/en" rel="nofollow">' + t('modernBrowser') + '</a>', interpolation: { escapeValue: false } })
|
2019-07-13 19:15:35 +00:00
|
|
|
.login
|
|
|
|
.login-dialog
|
2019-07-13 20:18:43 +00:00
|
|
|
if err
|
|
|
|
.login-error= err.message
|
2019-07-13 19:15:35 +00:00
|
|
|
form(method='post', action='/login')
|
|
|
|
h1= config.title
|
|
|
|
select(name='strategy')
|
|
|
|
each str in formStrategies
|
|
|
|
option(value=str.key, selected)= str.title
|
2019-07-14 00:27:31 +00:00
|
|
|
input(type='text', name='user', placeholder=t('auth:fields.emailUser'))
|
|
|
|
input(type='password', name='pass', placeholder=t('auth:fields.password'))
|
|
|
|
button(type='submit')= t('auth:actions.login')
|
2019-07-13 19:15:35 +00:00
|
|
|
if socialStrategies.length
|
|
|
|
.login-social
|
2019-07-14 00:27:31 +00:00
|
|
|
h2= t('auth:orLoginUsingStrategy')
|
2019-07-13 19:15:35 +00:00
|
|
|
each str in socialStrategies
|
|
|
|
a.login-social-icon(href='/login/' + str.key, class=str.color)
|
|
|
|
!= str.icon
|