Local authentication

This commit is contained in:
NGPixel
2016-10-30 23:03:36 -04:00
parent dc6fc449f0
commit 3d20fee5df
8 changed files with 90 additions and 42 deletions

View File

@@ -32,10 +32,16 @@ html
#root
h1= appconfig.title
h2 Login required
if appflash.length > 0
h3
i.fa.fa-warning
= appflash[0].title
h4= appflash[0].message
if appconfig.auth.local.enabled
input#login-user(type='text', placeholder='Email address')
input#login-pass(type='password', placeholder='Password')
button Log In
form(method='post', action='/login')
input#login-user(type='text', name='email', placeholder='Email address')
input#login-pass(type='password', name='password', placeholder='Password')
button(type='submit') Log In
if appconfig.authStrategies.socialEnabled
#social
if appconfig.auth.local.enabled
@@ -58,5 +64,4 @@ html
= t('footer.poweredby') + ' '
a.icon(href='https://github.com/Requarks/wiki')
i.fa.fa-github
a(href='https://github.com/Requarks/wiki') Requarks Wiki
a(href='https://github.com/Requarks/wiki') Requarks Wiki