summaryrefslogtreecommitdiff
path: root/server
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2014-11-07 18:29:00 -0500
committerJules Laplace <jules@okfoc.us>2014-11-07 18:29:00 -0500
commit94f19d836cfc80cd9d4fcfed17c1e2f025002994 (patch)
treeb42086cb790bf4f7b8e012e285e6d48e11172368 /server
parentf246a18bf02d2476b5f2bbc87a563b997b384a2c (diff)
alias login -> signin
Diffstat (limited to 'server')
-rw-r--r--server/index.js2
-rw-r--r--server/lib/auth/index.js3
2 files changed, 3 insertions, 2 deletions
diff --git a/server/index.js b/server/index.js
index 90b724c..c2b3421 100644
--- a/server/index.js
+++ b/server/index.js
@@ -82,6 +82,8 @@ site.route = function () {
app.get('/home', views.demoHome);
app.get('/login', views.modal);
app.get('/logout', auth.logout);
+ app.get('/signin', views.modal);
+ app.get('/signout', auth.logout);
app.get('/signup', views.modal);
app.post('/auth/signin', auth.loggedInLocal);
app.post('/auth/signup', auth.signup);
diff --git a/server/lib/auth/index.js b/server/lib/auth/index.js
index c2275ff..0c46105 100644
--- a/server/lib/auth/index.js
+++ b/server/lib/auth/index.js
@@ -30,14 +30,13 @@ var auth = {
callbackURL: 'http://' + config.host + '/auth/twitter/callback'
}, auth.insertTwitterUser));
- /*
passport.use(new FacebookStrategy({
clientID: process.env.VVALLS_FACEBOOK_KEY || '719828821410310',
clientSecret: process.env.VVALLS_FACEBOOK_SECRET || 'f9aba78e08f37f621eadb88b1409d48c',
callbackURL: 'http://' + config.host + '/auth/facebook/callback',
enableProof: false,
}, auth.insertFacebookUser));
- */
+
auth.mail.init()
},