mirror of
https://github.com/wassname/talk.git
synced 2026-07-14 11:18:50 +08:00
Return a meaningful error
This commit is contained in:
@@ -56,7 +56,7 @@ const HandleAuthPopupCallback = (req, res, next) => (err, user) => {
|
||||
}
|
||||
|
||||
if (!user) {
|
||||
return res.render('auth-callback', {auth: JSON.stringify({err, data: null})});
|
||||
return res.render('auth-callback', {auth: JSON.stringify({err: errors.ErrNotAuthorized, data: null})});
|
||||
}
|
||||
|
||||
// Generate the token to re-issue to the frontend.
|
||||
|
||||
Reference in New Issue
Block a user