mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
fix: ssoState passed to strategies even if not called for
This commit is contained in:
@@ -103,7 +103,7 @@ Auth.reloadRoutes = async function (params) {
|
|||||||
passport.authenticate(strategy.name, {
|
passport.authenticate(strategy.name, {
|
||||||
scope: strategy.scope,
|
scope: strategy.scope,
|
||||||
prompt: strategy.prompt || undefined,
|
prompt: strategy.prompt || undefined,
|
||||||
state: req.session.ssoState,
|
state: strategy.checkState ? req.session.ssoState : undefined,
|
||||||
})(req, res, next);
|
})(req, res, next);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user