mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 08:36: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, {
|
||||
scope: strategy.scope,
|
||||
prompt: strategy.prompt || undefined,
|
||||
state: req.session.ssoState,
|
||||
state: strategy.checkState ? req.session.ssoState : undefined,
|
||||
})(req, res, next);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user