aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/auth.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/auth.js')
-rw-r--r--src/auth.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/auth.js b/src/auth.js
index 83d0426..c003d2a 100644
--- a/src/auth.js
+++ b/src/auth.js
@@ -5,12 +5,12 @@ var passport = require('passport'),
5 5
6passport.serializeUser(function (user, done) { 6passport.serializeUser(function (user, done) {
7 console.log('serializeUser', user); 7 console.log('serializeUser', user);
8 done(null, user.id); 8 done(null, user.uid);
9}); 9});
10 10
11passport.deserializeUser(function (id, done) { 11passport.deserializeUser(function (id, done) {
12 console.log('deserializeUser', id); 12 console.log('deserializeUser', id);
13 done(null, { id: id }); 13 done(null, { uid: id });
14}); 14});
15 15
16var LDAP_URL = process.env.LDAP_URL; 16var LDAP_URL = process.env.LDAP_URL;