nodebb-plugin-session-sharing 8.0.2 → 8.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/library.js +3 -1
  2. package/package.json +1 -1
package/library.js CHANGED
@@ -455,7 +455,9 @@ plugin.addMiddleware = async function ({ req, res }) {
455
455
  const uid = await plugin.process(req.cookies[plugin.settings.cookieName]);
456
456
  if (uid === req.uid) {
457
457
  winston.verbose(`[session-sharing] Re-validated login for uid ${uid}, path ${req.originalUrl}`);
458
- await nbbAuthController.onSuccessfulLogin(req, uid);
458
+ const wasForceLogin = !!req.session.forceLogin;
459
+ delete req.session.forceLogin;
460
+ await nbbAuthController.onSuccessfulLogin(req, uid, true, wasForceLogin);
459
461
  return;
460
462
  }
461
463
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nodebb-plugin-session-sharing",
3
- "version": "8.0.2",
3
+ "version": "8.0.3",
4
4
  "description": "Allows login sessions from your app to persist in NodeBB",
5
5
  "main": "library.js",
6
6
  "repository": {