Showing
2 changed files
with
3 additions
and
2 deletions
@@ -64,7 +64,8 @@ function doPassportCallback(openId, nickname, sourceType, req, res) { | @@ -64,7 +64,8 @@ function doPassportCallback(openId, nickname, sourceType, req, res) { | ||
64 | return res.redirect(redirectTo); | 64 | return res.redirect(redirectTo); |
65 | }); | 65 | }); |
66 | } else { | 66 | } else { |
67 | - return Promise.reject('missing third party login openId or nickname'); | 67 | + log.error(`missing third party login openId or nickname, url:${req.url}`); |
68 | + return res.redirect(loginPage); | ||
68 | } | 69 | } |
69 | } | 70 | } |
70 | 71 |
-
Please register or login to post a comment