...
|
...
|
@@ -16,7 +16,7 @@ module.exports = (req, res, next) => { |
|
|
|
|
|
let loginPage = helpers.urlFormat('/passport/login', {refer: req.fullUrl()});
|
|
|
|
|
|
if (_.isEmpty(req.user) || !req.user.uid.isValid()) {
|
|
|
if (_.isEmpty(req.user) || !req.user.uid || !req.user.uid.isValid()) {
|
|
|
if (req.xhr) {
|
|
|
return res.json({
|
|
|
code: 400,
|
...
|
...
|
|