Unify signin and signup with lesser clicks
This commit is contained in:
committed by
Berkeley Martinez
parent
fd442c55bb
commit
e941545d2e
@ -15,6 +15,9 @@ block content
|
||||
a.btn.btn-lg.btn-block.btn-social.btn-twitter(href='/auth/twitter')
|
||||
i.fa.fa-twitter
|
||||
| Sign in with Twitter
|
||||
br
|
||||
p
|
||||
a(href="/signin") Or click here to go back.
|
||||
|
||||
script.
|
||||
$(document).ready(function() {
|
||||
|
@ -10,7 +10,7 @@ block content
|
||||
#flash-content
|
||||
.row
|
||||
.text-center
|
||||
h2 Sign in with your Email here:
|
||||
h2 Sign in with an Email here:
|
||||
.button-spacer
|
||||
.col-sm-6.col-sm-offset-3
|
||||
form(method='POST', action='/passwordless-auth')
|
||||
@ -25,7 +25,13 @@ block content
|
||||
.col-sm-6.col-sm-offset-3
|
||||
br
|
||||
p.text-center
|
||||
a(href="/signup") Or Click here if you want to sign up.
|
||||
| Free Code Camp uses passwordless authentication.
|
||||
br
|
||||
| If you are a new camper use any email, and sign up instantly,
|
||||
| or use your existing email with us, if you already have an account.
|
||||
br
|
||||
p.text-center
|
||||
a(href="/signin") Or click here if you want to sign in with other options.
|
||||
|
||||
script.
|
||||
$(document).ready(function() {
|
||||
|
@ -1,19 +1,19 @@
|
||||
extends ../layout
|
||||
block content
|
||||
.text-center
|
||||
h2 Are you a returning camper?
|
||||
h2 Welcome to Free Code Camp.
|
||||
br
|
||||
.button-spacer
|
||||
| Sign in with one of these options:
|
||||
| Sign in or Sign up with one of these options:
|
||||
a.btn.btn-lg.btn-block.btn-social.btn-primary(href='/email-signin')
|
||||
i.fa.fa-envelope
|
||||
| Sign in with Email
|
||||
| Continue with Email
|
||||
a.btn.btn-lg.btn-block.btn-social.btn-github(href='/auth/github')
|
||||
i.fa.fa-github
|
||||
| Sign in with GitHub
|
||||
| Continue with GitHub
|
||||
br
|
||||
p
|
||||
a(href="/deprecated-signin") Click here if you previously signed in using a different method.
|
||||
a(href="/deprecated-signin") Or click here if you previously signed up using a different method.
|
||||
|
||||
script.
|
||||
$(document).ready(function() {
|
||||
@ -43,7 +43,7 @@ block content
|
||||
$(this).removeClass('active');
|
||||
obj.methodClass = $(this).attr('class').split(' ').pop();
|
||||
obj.method = $(this).text();
|
||||
if(obj.method === "Sign in with Email" || obj.method === "Sign in with GitHub") {
|
||||
if(obj.method === "Continue with Email" || obj.method === "Continue in with GitHub") {
|
||||
localStorage.setItem('lastSigninMethod', JSON.stringify(obj));
|
||||
} else {
|
||||
localStorage.removeItem('lastSigninMethod');
|
||||
|
@ -28,7 +28,7 @@ nav.navbar.navbar-default.navbar-static-top.nav-height
|
||||
a(href='https://www.freecodecamp.org/donate') Donate
|
||||
if !user
|
||||
li
|
||||
a(href='/signup') Sign Up
|
||||
a(href='/signin') Sign In
|
||||
else
|
||||
li.avatar-points
|
||||
a(href='/settings')
|
||||
|
Reference in New Issue
Block a user