...
|
...
|
@@ -285,7 +285,8 @@ const wechat = { |
|
|
doPassportCallback(openId, nickname, 'wechat', req, res).catch(next);
|
|
|
})(req, res, next);
|
|
|
} else {
|
|
|
return next('Auth State Mismatch');
|
|
|
log.error('Auth State Mismatch:' + req.originalUrl);
|
|
|
return res.redirect(loginPage);
|
|
|
}
|
|
|
}
|
|
|
};
|
...
|
...
|
@@ -310,7 +311,8 @@ const sina = { |
|
|
doPassportCallback(openId, nickname, 'sina', req, res).catch(next);
|
|
|
})(req, res, next);
|
|
|
} else {
|
|
|
return next('Auth State Mismatch');
|
|
|
log.error('Auth State Mismatch:' + req.originalUrl);
|
|
|
return res.redirect(loginPage);
|
|
|
}
|
|
|
}
|
|
|
};
|
...
|
...
|
@@ -336,7 +338,8 @@ const qq = { |
|
|
doPassportCallback(openId, nickname, 'qq', req, res).catch(next);
|
|
|
})(req, res, next);
|
|
|
} else {
|
|
|
return next('Auth State Mismatch' + req.originalUrl);
|
|
|
log.error('Auth State Mismatch:' + req.originalUrl);
|
|
|
return res.redirect(loginPage);
|
|
|
}
|
|
|
}
|
|
|
};
|
...
|
...
|
|