...
|
...
|
@@ -267,6 +267,8 @@ const local = { |
|
|
|
|
|
const wechat = {
|
|
|
login: (req, res, next) => {
|
|
|
// 设置为原链接标识originalUrl
|
|
|
req.session.originalUrl = 'true';
|
|
|
req.session.authState = uuid.v4();
|
|
|
return passport.authenticate('weixin', {
|
|
|
state: req.session.authState
|
...
|
...
|
|