add oauth logins
This commit is contained in:
@ -3,10 +3,14 @@ var bcrypt = require('bcrypt-nodejs');
|
||||
var crypto = require('crypto');
|
||||
|
||||
var userSchema = new mongoose.Schema({
|
||||
email: { type: String, unique: true, lowercase: true },
|
||||
password: String,
|
||||
// email: { type: String, unique: true, lowercase: true },
|
||||
// password: String,
|
||||
|
||||
linkedin: String,
|
||||
facebook: String,
|
||||
github: String,
|
||||
twitter: String,
|
||||
google: String,
|
||||
instagram: String,
|
||||
tokens: Array,
|
||||
|
||||
|
@ -18,6 +18,21 @@ block content
|
||||
| Login
|
||||
a.btn.btn-link(href='/forgot') Forgot your password?
|
||||
hr
|
||||
a.btn.btn-block.btn-twitter.btn-social(href='/auth/twitter')
|
||||
a.btn.btn-block.btn-facebook.btn-social(href='/auth/facebook')
|
||||
i.fa.fa-facebook
|
||||
| Sign in with Facebook
|
||||
a.btn.btn-block.btn-twitter.btn-social(href='/auth/twitter')
|
||||
i.fa.fa-twitter
|
||||
| Sign in with Twitter
|
||||
| Sign in with Twitter
|
||||
a.btn.btn-block.btn-google-plus.btn-social(href='/auth/google')
|
||||
i.fa.fa-google-plus
|
||||
| Sign in with Google
|
||||
a.btn.btn-block.btn-github.btn-social(href='/auth/github')
|
||||
i.fa.fa-github
|
||||
| Sign in with GitHub
|
||||
a.btn.btn-block.btn-linkedin.btn-social(href='/auth/linkedin')
|
||||
i.fa.fa-linkedin
|
||||
| Sign in with LinkedIn
|
||||
a.btn.btn-block.btn-instagram.btn-social(href='/auth/instagram')
|
||||
i.fa.fa-instagram
|
||||
| Sign in with Instagram
|
Reference in New Issue
Block a user