dstroot / skeleton

Node Express MongoDB Bootstrap Passport... all rolled up into juicy goodness
skeleton-app.jit.su
MIT License
370 stars 47 forks source link

Signin and Signup pages #7

Closed cmpsoares91 closed 10 years ago

cmpsoares91 commented 10 years ago

Hi, it might be a little beginner question but why do you have a login, signup and signupsocial page? While only login is used even for member signup?

dstroot commented 10 years ago

Signup and login are 'standard' forms as on most websites that require authentication.

Social requires some explanation:

First, I don't distinguish between "signup" and "login" as there really is no reason to - the user clicks on "facebook" and the system handles signup or login behind the scenes - if it is the first time it is a signup, otherwise it is a login.

Second, some providers (Twitter for example) do not provide a user email account. Since we want to capture the user email account we have a single page to capture or verify the email and I called it "signupsocial" since that is the only time it is used.

Third, there is also the concept of "linking" social accounts. This means I could use Google+ to create a new account and then "link" my Facebook account and then I can sign in with either account. This is also built in.

cmpsoares91 commented 10 years ago

Yes that I came to knowledge, although I asked this because at view/account/ you made the files login.jade, signup.jade and signupsocial.jade. What is the difference between login.jade and signup.jade? Since you already explained what signupsocial is used for...

dstroot commented 10 years ago

Signup is:

It captures the minimum data we need to create an account.

Login is just email and password (to login)

Is that addressing your question? I may not be clear.

cmpsoares91 commented 10 years ago

Yes got it. Thank you very much!