Showing
1 changed file
with
0 additions
and
2 deletions
@@ -64,7 +64,6 @@ const wechat = { | @@ -64,7 +64,6 @@ const wechat = { | ||
64 | next(); | 64 | next(); |
65 | }, | 65 | }, |
66 | login: (req, res, next) => { | 66 | login: (req, res, next) => { |
67 | - console.log('1'); | ||
68 | return passport.authenticate('weixin', { | 67 | return passport.authenticate('weixin', { |
69 | state: uuid.v4() | 68 | state: uuid.v4() |
70 | })(req, res, next); | 69 | })(req, res, next); |
@@ -75,7 +74,6 @@ const wechat = { | @@ -75,7 +74,6 @@ const wechat = { | ||
75 | log.error(`wechat authenticate error : ${JSON.stringify(err)}`); | 74 | log.error(`wechat authenticate error : ${JSON.stringify(err)}`); |
76 | return res.redirect(loginPage); | 75 | return res.redirect(loginPage); |
77 | } | 76 | } |
78 | - console.log(user); | ||
79 | let nickname = user._json.nickname || user.displayName; | 77 | let nickname = user._json.nickname || user.displayName; |
80 | let openId = user._json.unionid || user.id; | 78 | let openId = user._json.unionid || user.id; |
81 | 79 |
-
Please register or login to post a comment