Authored by 郝肖肖

is not isvalid function

... ... @@ -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,
... ...