Removed if-checks, all authentications enabled by default

This commit is contained in:
Sahat Yalkabov
2014-04-12 23:23:12 -04:00
parent 13816a39ae
commit 0512ff93f3

View File

@ -5,36 +5,30 @@ block content
legend Sign In legend Sign In
input(type='hidden', name='_csrf', value=_csrf) input(type='hidden', name='_csrf', value=_csrf)
.col-sm-8.col-sm-offset-2 .col-sm-8.col-sm-offset-2
if secrets.localAuth .form-group
.form-group label.control-label(for='email') Email
label.control-label(for='email') Email input.form-control(type='text', name='email', id='email', placeholder='Email', autofocus=true)
input.form-control(type='text', name='email', id='email', placeholder='Email', autofocus=true) .form-group
.form-group label.control-label(for='password') Password
label.control-label(for='password') Password input.form-control(type='password', name='password', id='password', placeholder='Password')
input.form-control(type='password', name='password', id='password', placeholder='Password') .form-group
.form-group button.btn.btn-primary(type='submit')
button.btn.btn-primary(type='submit') i.fa.fa-unlock-alt
i.fa.fa-unlock-alt | Login
| Login a.btn.btn-link(href='/forgot') Forgot your password?
a.btn.btn-link(href='/forgot') Forgot your password? hr
hr a.btn.btn-block.btn-facebook.btn-social(href='/auth/facebook')
if secrets.facebookAuth i.fa.fa-facebook
a.btn.btn-block.btn-facebook.btn-social(href='/auth/facebook') | Sign in with Facebook
i.fa.fa-facebook a.btn.btn-block.btn-twitter.btn-social(href='/auth/twitter')
| Sign in with Facebook i.fa.fa-twitter
if secrets.twitterAuth | Sign in with Twitter
a.btn.btn-block.btn-twitter.btn-social(href='/auth/twitter') a.btn.btn-block.btn-google-plus.btn-social(href='/auth/google')
i.fa.fa-twitter i.fa.fa-google-plus
| Sign in with Twitter | Sign in with Google
if secrets.googleAuth a.btn.btn-block.btn-github.btn-social(href='/auth/github')
a.btn.btn-block.btn-google-plus.btn-social(href='/auth/google') i.fa.fa-github
i.fa.fa-google-plus | Sign in with GitHub
| Sign in with Google a.btn.btn-block.btn-linkedin.btn-social(href='/auth/linkedin')
if secrets.githubAuth i.fa.fa-linkedin
a.btn.btn-block.btn-github.btn-social(href='/auth/github') | Sign in with LinkedIn
i.fa.fa-github
| Sign in with GitHub
if secrets.linkedinAuth
a.btn.btn-block.btn-linkedin.btn-social(href='/auth/linkedin')
i.fa.fa-linkedin
| Sign in with LinkedIn