strapi-security-suite 0.2.2 → 0.2.4
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.
- package/dist/server/index.js +0 -2
- package/dist/server/index.mjs +0 -2
- package/package.json +1 -1
package/dist/server/index.js
CHANGED
|
@@ -12,7 +12,6 @@ async function trackActivity(ctx, next) {
|
|
|
12
12
|
const adminUser = ctx.session?.user;
|
|
13
13
|
let key = adminUser?.id ? `${adminUser.id}:${adminUser.email}` : null;
|
|
14
14
|
const auth = ctx.request.headers?.authorization;
|
|
15
|
-
console.log("revokedConnectionTokens =======>", revokedConnectionTokens);
|
|
16
15
|
if (auth && revokedConnectionTokens.has(auth.split(" ")[1]) || revokedConnectionTokens.has(ctx.cookies.get("jwtToken"))) {
|
|
17
16
|
ctx.cookies.set("jwtToken", "", { expires: /* @__PURE__ */ new Date(0), path: "/" });
|
|
18
17
|
ctx.status = 403;
|
|
@@ -260,7 +259,6 @@ const bootstrap = async ({ strapi: strapi2 }) => {
|
|
|
260
259
|
async function ensureDefaultSecuritySettings(strapi2) {
|
|
261
260
|
try {
|
|
262
261
|
const existing = await strapi2.entityService.findMany("plugin::strapi-security-suite.security-settings");
|
|
263
|
-
console.log(existing);
|
|
264
262
|
if (Array.isArray(existing) && existing.length > 0) {
|
|
265
263
|
strapi2.log.info("✅ Default security settings already exist.");
|
|
266
264
|
return;
|
package/dist/server/index.mjs
CHANGED
|
@@ -9,7 +9,6 @@ async function trackActivity(ctx, next) {
|
|
|
9
9
|
const adminUser = ctx.session?.user;
|
|
10
10
|
let key = adminUser?.id ? `${adminUser.id}:${adminUser.email}` : null;
|
|
11
11
|
const auth = ctx.request.headers?.authorization;
|
|
12
|
-
console.log("revokedConnectionTokens =======>", revokedConnectionTokens);
|
|
13
12
|
if (auth && revokedConnectionTokens.has(auth.split(" ")[1]) || revokedConnectionTokens.has(ctx.cookies.get("jwtToken"))) {
|
|
14
13
|
ctx.cookies.set("jwtToken", "", { expires: /* @__PURE__ */ new Date(0), path: "/" });
|
|
15
14
|
ctx.status = 403;
|
|
@@ -257,7 +256,6 @@ const bootstrap = async ({ strapi: strapi2 }) => {
|
|
|
257
256
|
async function ensureDefaultSecuritySettings(strapi2) {
|
|
258
257
|
try {
|
|
259
258
|
const existing = await strapi2.entityService.findMany("plugin::strapi-security-suite.security-settings");
|
|
260
|
-
console.log(existing);
|
|
261
259
|
if (Array.isArray(existing) && existing.length > 0) {
|
|
262
260
|
strapi2.log.info("✅ Default security settings already exist.");
|
|
263
261
|
return;
|
package/package.json
CHANGED