diff options
Diffstat (limited to 'src/auth.js')
-rw-r--r-- | src/auth.js | 4 |
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 | ||
6 | passport.serializeUser(function (user, done) { | 6 | passport.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 | ||
11 | passport.deserializeUser(function (id, done) { | 11 | passport.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 | ||
16 | var LDAP_URL = process.env.LDAP_URL; | 16 | var LDAP_URL = process.env.LDAP_URL; |