strapi-plugin-magic-link-v5 5.3.7 → 5.3.8
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/_chunks/{index-BUHivW2a.mjs → index-B-PgbJ5D.mjs} +18 -18
- package/dist/_chunks/{index-CuGZgFmB.mjs → index-BBKa6A2s.mjs} +3 -3
- package/dist/_chunks/{index-C5VJ3M0F.mjs → index-D4Wkw6ag.mjs} +3 -3
- package/dist/_chunks/{index-JjtRSZnt.js → index-DFO_GC1R.js} +1 -1
- package/dist/_chunks/{index-DK6dkTEP.js → index-Qgh8CPXr.js} +3 -3
- package/dist/_chunks/{index-wXx2DRow.js → index-VI--ZF21.js} +18 -18
- package/dist/_chunks/{index-DY0oHIyx.mjs → index-gLtsuNYy.mjs} +1 -1
- package/dist/_chunks/{index-C9OJSkTr.js → index-jTx04z3R.js} +3 -3
- package/dist/admin/index.js +1 -1
- package/dist/admin/index.mjs +1 -1
- package/dist/server/index.js +14 -6
- package/dist/server/index.mjs +14 -6
- package/package.json +1 -1
|
@@ -5,7 +5,7 @@ import { useIntl } from "react-intl";
|
|
|
5
5
|
import { Box, Typography, Flex, Button, Accordion, SingleSelect, SingleSelectOption, Grid, Toggle, NumberInput, TextInput, Divider, Textarea, Badge } from "@strapi/design-system";
|
|
6
6
|
import { Check, Cog, Lightning, Shield, Mail, CheckCircle, Code, Link, Lock, Key } from "@strapi/icons";
|
|
7
7
|
import { useNotification, useFetchClient } from "@strapi/strapi/admin";
|
|
8
|
-
import { g as getTrad } from "./index-
|
|
8
|
+
import { g as getTrad } from "./index-D4Wkw6ag.mjs";
|
|
9
9
|
import { u as usePluginLanguage, L as LicenseGuard, a as LanguageProvider } from "./LicenseGuard-B_r3b1Vh.mjs";
|
|
10
10
|
const EMAIL_TEMPLATES = {
|
|
11
11
|
modern: {
|
|
@@ -1059,7 +1059,7 @@ _Falls du diesen Link nicht angefordert hast, ignoriere diese Nachricht._`,
|
|
|
1059
1059
|
Toggle,
|
|
1060
1060
|
{
|
|
1061
1061
|
checked: settings.enabled,
|
|
1062
|
-
|
|
1062
|
+
onCheckedChange: (checked) => updateSetting("enabled", checked),
|
|
1063
1063
|
size: "L"
|
|
1064
1064
|
}
|
|
1065
1065
|
) }),
|
|
@@ -1073,7 +1073,7 @@ _Falls du diesen Link nicht angefordert hast, ignoriere diese Nachricht._`,
|
|
|
1073
1073
|
Toggle,
|
|
1074
1074
|
{
|
|
1075
1075
|
checked: settings.createUserIfNotExists,
|
|
1076
|
-
|
|
1076
|
+
onCheckedChange: (checked) => updateSetting("createUserIfNotExists", checked),
|
|
1077
1077
|
size: "L"
|
|
1078
1078
|
}
|
|
1079
1079
|
) }),
|
|
@@ -1087,7 +1087,7 @@ _Falls du diesen Link nicht angefordert hast, ignoriere diese Nachricht._`,
|
|
|
1087
1087
|
Toggle,
|
|
1088
1088
|
{
|
|
1089
1089
|
checked: settings.stays_valid,
|
|
1090
|
-
|
|
1090
|
+
onCheckedChange: (checked) => updateSetting("stays_valid", checked),
|
|
1091
1091
|
size: "L"
|
|
1092
1092
|
}
|
|
1093
1093
|
) }),
|
|
@@ -1290,7 +1290,7 @@ _Falls du diesen Link nicht angefordert hast, ignoriere diese Nachricht._`,
|
|
|
1290
1290
|
/* @__PURE__ */ jsx(Typography, { variant: "pi", textColor: "neutral600", style: { fontSize: "11px", marginTop: "8px" }, children: "Wird in der WhatsApp-Nachricht als App-Name angezeigt." })
|
|
1291
1291
|
] }) }),
|
|
1292
1292
|
/* @__PURE__ */ jsx(Grid.Item, { col: 6, s: 12, children: /* @__PURE__ */ jsx(Flex, { direction: "column", gap: 3, children: /* @__PURE__ */ jsx(ToggleCard, { $active: settings.whatsapp_debug, $statusLabel: settings.whatsapp_debug ? "DEBUG" : "OFF", onClick: () => updateSetting("whatsapp_debug", !settings.whatsapp_debug), children: /* @__PURE__ */ jsxs(Flex, { gap: 3, alignItems: "center", children: [
|
|
1293
|
-
/* @__PURE__ */ jsx(GreenToggle, { $isActive: settings.whatsapp_debug, children: /* @__PURE__ */ jsx(Toggle, { checked: settings.whatsapp_debug,
|
|
1293
|
+
/* @__PURE__ */ jsx(GreenToggle, { $isActive: settings.whatsapp_debug, children: /* @__PURE__ */ jsx(Toggle, { checked: settings.whatsapp_debug, onCheckedChange: (checked) => updateSetting("whatsapp_debug", checked) }) }),
|
|
1294
1294
|
/* @__PURE__ */ jsxs(Box, { children: [
|
|
1295
1295
|
/* @__PURE__ */ jsx(Typography, { variant: "omega", fontWeight: "bold", children: "Debug Mode" }),
|
|
1296
1296
|
/* @__PURE__ */ jsx(Typography, { variant: "pi", textColor: "neutral600", style: { fontSize: "11px" }, children: "Aktiviert ausfuehrliche WhatsApp-Logs" })
|
|
@@ -1341,7 +1341,7 @@ _Falls du diesen Link nicht angefordert hast, ignoriere diese Nachricht._`,
|
|
|
1341
1341
|
Toggle,
|
|
1342
1342
|
{
|
|
1343
1343
|
checked: settings.verify_email,
|
|
1344
|
-
|
|
1344
|
+
onCheckedChange: (checked) => updateSetting("verify_email", checked),
|
|
1345
1345
|
size: "L"
|
|
1346
1346
|
}
|
|
1347
1347
|
) }),
|
|
@@ -1355,7 +1355,7 @@ _Falls du diesen Link nicht angefordert hast, ignoriere diese Nachricht._`,
|
|
|
1355
1355
|
Toggle,
|
|
1356
1356
|
{
|
|
1357
1357
|
checked: settings.welcome_email,
|
|
1358
|
-
|
|
1358
|
+
onCheckedChange: (checked) => updateSetting("welcome_email", checked),
|
|
1359
1359
|
size: "L"
|
|
1360
1360
|
}
|
|
1361
1361
|
) }),
|
|
@@ -1369,7 +1369,7 @@ _Falls du diesen Link nicht angefordert hast, ignoriere diese Nachricht._`,
|
|
|
1369
1369
|
Toggle,
|
|
1370
1370
|
{
|
|
1371
1371
|
checked: settings.use_jwt_token,
|
|
1372
|
-
|
|
1372
|
+
onCheckedChange: (checked) => updateSetting("use_jwt_token", checked),
|
|
1373
1373
|
size: "L"
|
|
1374
1374
|
}
|
|
1375
1375
|
) }),
|
|
@@ -1383,7 +1383,7 @@ _Falls du diesen Link nicht angefordert hast, ignoriere diese Nachricht._`,
|
|
|
1383
1383
|
Toggle,
|
|
1384
1384
|
{
|
|
1385
1385
|
checked: settings.store_login_info,
|
|
1386
|
-
|
|
1386
|
+
onCheckedChange: (checked) => updateSetting("store_login_info", checked),
|
|
1387
1387
|
size: "L"
|
|
1388
1388
|
}
|
|
1389
1389
|
) }),
|
|
@@ -1602,7 +1602,7 @@ _Falls du diesen Link nicht angefordert hast, ignoriere diese Nachricht._`,
|
|
|
1602
1602
|
Toggle,
|
|
1603
1603
|
{
|
|
1604
1604
|
checked: settings.use_email_designer || false,
|
|
1605
|
-
|
|
1605
|
+
onCheckedChange: (checked) => updateSetting("use_email_designer", checked)
|
|
1606
1606
|
}
|
|
1607
1607
|
) })
|
|
1608
1608
|
] }),
|
|
@@ -1742,7 +1742,7 @@ _Falls du diesen Link nicht angefordert hast, ignoriere diese Nachricht._`,
|
|
|
1742
1742
|
Toggle,
|
|
1743
1743
|
{
|
|
1744
1744
|
checked: settings.use_magic_mail || false,
|
|
1745
|
-
|
|
1745
|
+
onCheckedChange: (checked) => updateSetting("use_magic_mail", checked)
|
|
1746
1746
|
}
|
|
1747
1747
|
) })
|
|
1748
1748
|
] }) }),
|
|
@@ -2212,7 +2212,7 @@ ${language === "de" ? "Der Link läuft in 1 Stunde ab." : "The link expires in 1
|
|
|
2212
2212
|
Toggle,
|
|
2213
2213
|
{
|
|
2214
2214
|
checked: settings.allow_magic_links_on_public_registration,
|
|
2215
|
-
|
|
2215
|
+
onCheckedChange: (checked) => updateSetting("allow_magic_links_on_public_registration", checked),
|
|
2216
2216
|
size: "L"
|
|
2217
2217
|
}
|
|
2218
2218
|
) }),
|
|
@@ -2689,11 +2689,11 @@ ${language === "de" ? "Der Link läuft in 1 Stunde ab." : "The link expires in 1
|
|
|
2689
2689
|
Toggle,
|
|
2690
2690
|
{
|
|
2691
2691
|
checked: settings.totp_as_primary_auth || false,
|
|
2692
|
-
|
|
2693
|
-
if (
|
|
2692
|
+
onCheckedChange: (checked) => {
|
|
2693
|
+
if (checked && !checkLicenseAndSetMode("totp-primary")) {
|
|
2694
2694
|
return;
|
|
2695
2695
|
}
|
|
2696
|
-
updateSetting("totp_as_primary_auth",
|
|
2696
|
+
updateSetting("totp_as_primary_auth", checked);
|
|
2697
2697
|
}
|
|
2698
2698
|
}
|
|
2699
2699
|
) })
|
|
@@ -2808,7 +2808,7 @@ ${language === "de" ? "Der Link läuft in 1 Stunde ab." : "The link expires in 1
|
|
|
2808
2808
|
Toggle,
|
|
2809
2809
|
{
|
|
2810
2810
|
checked: settings.rate_limit_enabled,
|
|
2811
|
-
|
|
2811
|
+
onCheckedChange: (checked) => updateSetting("rate_limit_enabled", checked),
|
|
2812
2812
|
size: "L"
|
|
2813
2813
|
}
|
|
2814
2814
|
) }),
|
|
@@ -2930,7 +2930,7 @@ ${language === "de" ? "Der Link läuft in 1 Stunde ab." : "The link expires in 1
|
|
|
2930
2930
|
Toggle,
|
|
2931
2931
|
{
|
|
2932
2932
|
checked: settings.passwordlessCompatibility,
|
|
2933
|
-
|
|
2933
|
+
onCheckedChange: (checked) => updateSetting("passwordlessCompatibility", checked),
|
|
2934
2934
|
size: "L"
|
|
2935
2935
|
}
|
|
2936
2936
|
) }),
|
|
@@ -2961,7 +2961,7 @@ ${language === "de" ? "Der Link läuft in 1 Stunde ab." : "The link expires in 1
|
|
|
2961
2961
|
Toggle,
|
|
2962
2962
|
{
|
|
2963
2963
|
checked: settings.emailDesignerCompatibility,
|
|
2964
|
-
|
|
2964
|
+
onCheckedChange: (checked) => updateSetting("emailDesignerCompatibility", checked),
|
|
2965
2965
|
size: "L"
|
|
2966
2966
|
}
|
|
2967
2967
|
) }),
|
|
@@ -5,7 +5,7 @@ import styled, { keyframes, css } from "styled-components";
|
|
|
5
5
|
import { useIntl } from "react-intl";
|
|
6
6
|
import { Box, Flex, Typography, Button, TextInput, Textarea, Checkbox, IconButton, Loader, Searchbar, SingleSelect, SingleSelectOption, Thead, Tr, Th, Tbody, Td, Pagination, PreviousLink, PageLink, NextLink, Table, Badge, VisuallyHidden, Main } from "@strapi/design-system";
|
|
7
7
|
import { Cross, Sparkle, Check, Shield, Clock, Lock, Trash, ArrowClockwise, CaretDown, User, Monitor, Calendar, Plus, Earth, WarningCircle, Server, Eye, Mail, Cog, Key, Link } from "@strapi/icons";
|
|
8
|
-
import { g as getTrad, P as PLUGIN_ID } from "./index-
|
|
8
|
+
import { g as getTrad, P as PLUGIN_ID } from "./index-D4Wkw6ag.mjs";
|
|
9
9
|
import { useFetchClient, useNotification } from "@strapi/strapi/admin";
|
|
10
10
|
import { L as LicenseGuard, a as LanguageProvider } from "./LicenseGuard-B_r3b1Vh.mjs";
|
|
11
11
|
const CreateTokenModal = ({ isOpen, onClose, onSubmit, formData, setFormData }) => {
|
|
@@ -1249,7 +1249,7 @@ const JWTSessions = () => {
|
|
|
1249
1249
|
/* @__PURE__ */ jsx(Th, { children: /* @__PURE__ */ jsx(
|
|
1250
1250
|
Checkbox,
|
|
1251
1251
|
{
|
|
1252
|
-
|
|
1252
|
+
checked: selectedSessions.length === paginatedSessions.length && paginatedSessions.length > 0,
|
|
1253
1253
|
onCheckedChange: handleSelectAll
|
|
1254
1254
|
}
|
|
1255
1255
|
) }),
|
|
@@ -1265,7 +1265,7 @@ const JWTSessions = () => {
|
|
|
1265
1265
|
/* @__PURE__ */ jsx(Td, { children: /* @__PURE__ */ jsx(
|
|
1266
1266
|
Checkbox,
|
|
1267
1267
|
{
|
|
1268
|
-
|
|
1268
|
+
checked: selectedSessions.includes(session.id),
|
|
1269
1269
|
onCheckedChange: (checked) => handleSelectSession(session.id, checked)
|
|
1270
1270
|
}
|
|
1271
1271
|
) }),
|
|
@@ -59,7 +59,7 @@ const index = {
|
|
|
59
59
|
},
|
|
60
60
|
Component: () => import(
|
|
61
61
|
/* webpackChunkName: "magic-link-tokens" */
|
|
62
|
-
"./index-
|
|
62
|
+
"./index-BBKa6A2s.mjs"
|
|
63
63
|
),
|
|
64
64
|
permissions: []
|
|
65
65
|
// Leeres Array = keine Permission-Prüfung nötig
|
|
@@ -82,7 +82,7 @@ const index = {
|
|
|
82
82
|
to: `${PLUGIN_ID}/config`,
|
|
83
83
|
Component: () => import(
|
|
84
84
|
/* webpackChunkName: "magic-link-settings" */
|
|
85
|
-
"./index-
|
|
85
|
+
"./index-B-PgbJ5D.mjs"
|
|
86
86
|
),
|
|
87
87
|
permissions: pluginPermissions.readSettings
|
|
88
88
|
},
|
|
@@ -121,7 +121,7 @@ const index = {
|
|
|
121
121
|
to: `${PLUGIN_ID}/whatsapp`,
|
|
122
122
|
Component: () => import(
|
|
123
123
|
/* webpackChunkName: "magic-link-whatsapp" */
|
|
124
|
-
"./index-
|
|
124
|
+
"./index-gLtsuNYy.mjs"
|
|
125
125
|
),
|
|
126
126
|
permissions: []
|
|
127
127
|
}
|
|
@@ -7,7 +7,7 @@ const reactIntl = require("react-intl");
|
|
|
7
7
|
const designSystem = require("@strapi/design-system");
|
|
8
8
|
const icons = require("@strapi/icons");
|
|
9
9
|
const admin = require("@strapi/strapi/admin");
|
|
10
|
-
const index = require("./index-
|
|
10
|
+
const index = require("./index-Qgh8CPXr.js");
|
|
11
11
|
const _interopDefault = (e) => e && e.__esModule ? e : { default: e };
|
|
12
12
|
const styled__default = /* @__PURE__ */ _interopDefault(styled);
|
|
13
13
|
const theme = {
|
|
@@ -60,7 +60,7 @@ const index = {
|
|
|
60
60
|
},
|
|
61
61
|
Component: () => Promise.resolve().then(() => require(
|
|
62
62
|
/* webpackChunkName: "magic-link-tokens" */
|
|
63
|
-
"./index-
|
|
63
|
+
"./index-jTx04z3R.js"
|
|
64
64
|
)),
|
|
65
65
|
permissions: []
|
|
66
66
|
// Leeres Array = keine Permission-Prüfung nötig
|
|
@@ -83,7 +83,7 @@ const index = {
|
|
|
83
83
|
to: `${PLUGIN_ID}/config`,
|
|
84
84
|
Component: () => Promise.resolve().then(() => require(
|
|
85
85
|
/* webpackChunkName: "magic-link-settings" */
|
|
86
|
-
"./index-
|
|
86
|
+
"./index-VI--ZF21.js"
|
|
87
87
|
)),
|
|
88
88
|
permissions: pluginPermissions.readSettings
|
|
89
89
|
},
|
|
@@ -122,7 +122,7 @@ const index = {
|
|
|
122
122
|
to: `${PLUGIN_ID}/whatsapp`,
|
|
123
123
|
Component: () => Promise.resolve().then(() => require(
|
|
124
124
|
/* webpackChunkName: "magic-link-whatsapp" */
|
|
125
|
-
"./index-
|
|
125
|
+
"./index-DFO_GC1R.js"
|
|
126
126
|
)),
|
|
127
127
|
permissions: []
|
|
128
128
|
}
|
|
@@ -7,7 +7,7 @@ const reactIntl = require("react-intl");
|
|
|
7
7
|
const designSystem = require("@strapi/design-system");
|
|
8
8
|
const icons = require("@strapi/icons");
|
|
9
9
|
const admin = require("@strapi/strapi/admin");
|
|
10
|
-
const index = require("./index-
|
|
10
|
+
const index = require("./index-Qgh8CPXr.js");
|
|
11
11
|
const LicenseGuard = require("./LicenseGuard-BEEd9IpN.js");
|
|
12
12
|
const _interopDefault = (e) => e && e.__esModule ? e : { default: e };
|
|
13
13
|
const styled__default = /* @__PURE__ */ _interopDefault(styled);
|
|
@@ -1063,7 +1063,7 @@ _Falls du diesen Link nicht angefordert hast, ignoriere diese Nachricht._`,
|
|
|
1063
1063
|
designSystem.Toggle,
|
|
1064
1064
|
{
|
|
1065
1065
|
checked: settings.enabled,
|
|
1066
|
-
|
|
1066
|
+
onCheckedChange: (checked) => updateSetting("enabled", checked),
|
|
1067
1067
|
size: "L"
|
|
1068
1068
|
}
|
|
1069
1069
|
) }),
|
|
@@ -1077,7 +1077,7 @@ _Falls du diesen Link nicht angefordert hast, ignoriere diese Nachricht._`,
|
|
|
1077
1077
|
designSystem.Toggle,
|
|
1078
1078
|
{
|
|
1079
1079
|
checked: settings.createUserIfNotExists,
|
|
1080
|
-
|
|
1080
|
+
onCheckedChange: (checked) => updateSetting("createUserIfNotExists", checked),
|
|
1081
1081
|
size: "L"
|
|
1082
1082
|
}
|
|
1083
1083
|
) }),
|
|
@@ -1091,7 +1091,7 @@ _Falls du diesen Link nicht angefordert hast, ignoriere diese Nachricht._`,
|
|
|
1091
1091
|
designSystem.Toggle,
|
|
1092
1092
|
{
|
|
1093
1093
|
checked: settings.stays_valid,
|
|
1094
|
-
|
|
1094
|
+
onCheckedChange: (checked) => updateSetting("stays_valid", checked),
|
|
1095
1095
|
size: "L"
|
|
1096
1096
|
}
|
|
1097
1097
|
) }),
|
|
@@ -1294,7 +1294,7 @@ _Falls du diesen Link nicht angefordert hast, ignoriere diese Nachricht._`,
|
|
|
1294
1294
|
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { variant: "pi", textColor: "neutral600", style: { fontSize: "11px", marginTop: "8px" }, children: "Wird in der WhatsApp-Nachricht als App-Name angezeigt." })
|
|
1295
1295
|
] }) }),
|
|
1296
1296
|
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Grid.Item, { col: 6, s: 12, children: /* @__PURE__ */ jsxRuntime.jsx(designSystem.Flex, { direction: "column", gap: 3, children: /* @__PURE__ */ jsxRuntime.jsx(ToggleCard, { $active: settings.whatsapp_debug, $statusLabel: settings.whatsapp_debug ? "DEBUG" : "OFF", onClick: () => updateSetting("whatsapp_debug", !settings.whatsapp_debug), children: /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { gap: 3, alignItems: "center", children: [
|
|
1297
|
-
/* @__PURE__ */ jsxRuntime.jsx(GreenToggle, { $isActive: settings.whatsapp_debug, children: /* @__PURE__ */ jsxRuntime.jsx(designSystem.Toggle, { checked: settings.whatsapp_debug,
|
|
1297
|
+
/* @__PURE__ */ jsxRuntime.jsx(GreenToggle, { $isActive: settings.whatsapp_debug, children: /* @__PURE__ */ jsxRuntime.jsx(designSystem.Toggle, { checked: settings.whatsapp_debug, onCheckedChange: (checked) => updateSetting("whatsapp_debug", checked) }) }),
|
|
1298
1298
|
/* @__PURE__ */ jsxRuntime.jsxs(designSystem.Box, { children: [
|
|
1299
1299
|
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { variant: "omega", fontWeight: "bold", children: "Debug Mode" }),
|
|
1300
1300
|
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { variant: "pi", textColor: "neutral600", style: { fontSize: "11px" }, children: "Aktiviert ausfuehrliche WhatsApp-Logs" })
|
|
@@ -1345,7 +1345,7 @@ _Falls du diesen Link nicht angefordert hast, ignoriere diese Nachricht._`,
|
|
|
1345
1345
|
designSystem.Toggle,
|
|
1346
1346
|
{
|
|
1347
1347
|
checked: settings.verify_email,
|
|
1348
|
-
|
|
1348
|
+
onCheckedChange: (checked) => updateSetting("verify_email", checked),
|
|
1349
1349
|
size: "L"
|
|
1350
1350
|
}
|
|
1351
1351
|
) }),
|
|
@@ -1359,7 +1359,7 @@ _Falls du diesen Link nicht angefordert hast, ignoriere diese Nachricht._`,
|
|
|
1359
1359
|
designSystem.Toggle,
|
|
1360
1360
|
{
|
|
1361
1361
|
checked: settings.welcome_email,
|
|
1362
|
-
|
|
1362
|
+
onCheckedChange: (checked) => updateSetting("welcome_email", checked),
|
|
1363
1363
|
size: "L"
|
|
1364
1364
|
}
|
|
1365
1365
|
) }),
|
|
@@ -1373,7 +1373,7 @@ _Falls du diesen Link nicht angefordert hast, ignoriere diese Nachricht._`,
|
|
|
1373
1373
|
designSystem.Toggle,
|
|
1374
1374
|
{
|
|
1375
1375
|
checked: settings.use_jwt_token,
|
|
1376
|
-
|
|
1376
|
+
onCheckedChange: (checked) => updateSetting("use_jwt_token", checked),
|
|
1377
1377
|
size: "L"
|
|
1378
1378
|
}
|
|
1379
1379
|
) }),
|
|
@@ -1387,7 +1387,7 @@ _Falls du diesen Link nicht angefordert hast, ignoriere diese Nachricht._`,
|
|
|
1387
1387
|
designSystem.Toggle,
|
|
1388
1388
|
{
|
|
1389
1389
|
checked: settings.store_login_info,
|
|
1390
|
-
|
|
1390
|
+
onCheckedChange: (checked) => updateSetting("store_login_info", checked),
|
|
1391
1391
|
size: "L"
|
|
1392
1392
|
}
|
|
1393
1393
|
) }),
|
|
@@ -1606,7 +1606,7 @@ _Falls du diesen Link nicht angefordert hast, ignoriere diese Nachricht._`,
|
|
|
1606
1606
|
designSystem.Toggle,
|
|
1607
1607
|
{
|
|
1608
1608
|
checked: settings.use_email_designer || false,
|
|
1609
|
-
|
|
1609
|
+
onCheckedChange: (checked) => updateSetting("use_email_designer", checked)
|
|
1610
1610
|
}
|
|
1611
1611
|
) })
|
|
1612
1612
|
] }),
|
|
@@ -1746,7 +1746,7 @@ _Falls du diesen Link nicht angefordert hast, ignoriere diese Nachricht._`,
|
|
|
1746
1746
|
designSystem.Toggle,
|
|
1747
1747
|
{
|
|
1748
1748
|
checked: settings.use_magic_mail || false,
|
|
1749
|
-
|
|
1749
|
+
onCheckedChange: (checked) => updateSetting("use_magic_mail", checked)
|
|
1750
1750
|
}
|
|
1751
1751
|
) })
|
|
1752
1752
|
] }) }),
|
|
@@ -2216,7 +2216,7 @@ ${language === "de" ? "Der Link läuft in 1 Stunde ab." : "The link expires in 1
|
|
|
2216
2216
|
designSystem.Toggle,
|
|
2217
2217
|
{
|
|
2218
2218
|
checked: settings.allow_magic_links_on_public_registration,
|
|
2219
|
-
|
|
2219
|
+
onCheckedChange: (checked) => updateSetting("allow_magic_links_on_public_registration", checked),
|
|
2220
2220
|
size: "L"
|
|
2221
2221
|
}
|
|
2222
2222
|
) }),
|
|
@@ -2693,11 +2693,11 @@ ${language === "de" ? "Der Link läuft in 1 Stunde ab." : "The link expires in 1
|
|
|
2693
2693
|
designSystem.Toggle,
|
|
2694
2694
|
{
|
|
2695
2695
|
checked: settings.totp_as_primary_auth || false,
|
|
2696
|
-
|
|
2697
|
-
if (
|
|
2696
|
+
onCheckedChange: (checked) => {
|
|
2697
|
+
if (checked && !checkLicenseAndSetMode("totp-primary")) {
|
|
2698
2698
|
return;
|
|
2699
2699
|
}
|
|
2700
|
-
updateSetting("totp_as_primary_auth",
|
|
2700
|
+
updateSetting("totp_as_primary_auth", checked);
|
|
2701
2701
|
}
|
|
2702
2702
|
}
|
|
2703
2703
|
) })
|
|
@@ -2812,7 +2812,7 @@ ${language === "de" ? "Der Link läuft in 1 Stunde ab." : "The link expires in 1
|
|
|
2812
2812
|
designSystem.Toggle,
|
|
2813
2813
|
{
|
|
2814
2814
|
checked: settings.rate_limit_enabled,
|
|
2815
|
-
|
|
2815
|
+
onCheckedChange: (checked) => updateSetting("rate_limit_enabled", checked),
|
|
2816
2816
|
size: "L"
|
|
2817
2817
|
}
|
|
2818
2818
|
) }),
|
|
@@ -2934,7 +2934,7 @@ ${language === "de" ? "Der Link läuft in 1 Stunde ab." : "The link expires in 1
|
|
|
2934
2934
|
designSystem.Toggle,
|
|
2935
2935
|
{
|
|
2936
2936
|
checked: settings.passwordlessCompatibility,
|
|
2937
|
-
|
|
2937
|
+
onCheckedChange: (checked) => updateSetting("passwordlessCompatibility", checked),
|
|
2938
2938
|
size: "L"
|
|
2939
2939
|
}
|
|
2940
2940
|
) }),
|
|
@@ -2965,7 +2965,7 @@ ${language === "de" ? "Der Link läuft in 1 Stunde ab." : "The link expires in 1
|
|
|
2965
2965
|
designSystem.Toggle,
|
|
2966
2966
|
{
|
|
2967
2967
|
checked: settings.emailDesignerCompatibility,
|
|
2968
|
-
|
|
2968
|
+
onCheckedChange: (checked) => updateSetting("emailDesignerCompatibility", checked),
|
|
2969
2969
|
size: "L"
|
|
2970
2970
|
}
|
|
2971
2971
|
) }),
|
|
@@ -5,7 +5,7 @@ import { useIntl } from "react-intl";
|
|
|
5
5
|
import { Flex, Loader, Box, Typography, Button, TextInput, Badge } from "@strapi/design-system";
|
|
6
6
|
import { Phone, Check, Message, ArrowClockwise } from "@strapi/icons";
|
|
7
7
|
import { useNotification, useFetchClient } from "@strapi/strapi/admin";
|
|
8
|
-
import { g as getTrad } from "./index-
|
|
8
|
+
import { g as getTrad } from "./index-D4Wkw6ag.mjs";
|
|
9
9
|
const theme = {
|
|
10
10
|
colors: {
|
|
11
11
|
primary: { 700: "#075985", 100: "#E0F2FE", 50: "#F0F9FF" },
|
|
@@ -7,7 +7,7 @@ const styled = require("styled-components");
|
|
|
7
7
|
const reactIntl = require("react-intl");
|
|
8
8
|
const designSystem = require("@strapi/design-system");
|
|
9
9
|
const icons = require("@strapi/icons");
|
|
10
|
-
const index = require("./index-
|
|
10
|
+
const index = require("./index-Qgh8CPXr.js");
|
|
11
11
|
const admin = require("@strapi/strapi/admin");
|
|
12
12
|
const LicenseGuard = require("./LicenseGuard-BEEd9IpN.js");
|
|
13
13
|
const _interopDefault = (e) => e && e.__esModule ? e : { default: e };
|
|
@@ -1253,7 +1253,7 @@ const JWTSessions = () => {
|
|
|
1253
1253
|
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Th, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1254
1254
|
designSystem.Checkbox,
|
|
1255
1255
|
{
|
|
1256
|
-
|
|
1256
|
+
checked: selectedSessions.length === paginatedSessions.length && paginatedSessions.length > 0,
|
|
1257
1257
|
onCheckedChange: handleSelectAll
|
|
1258
1258
|
}
|
|
1259
1259
|
) }),
|
|
@@ -1269,7 +1269,7 @@ const JWTSessions = () => {
|
|
|
1269
1269
|
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Td, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1270
1270
|
designSystem.Checkbox,
|
|
1271
1271
|
{
|
|
1272
|
-
|
|
1272
|
+
checked: selectedSessions.includes(session.id),
|
|
1273
1273
|
onCheckedChange: (checked) => handleSelectSession(session.id, checked)
|
|
1274
1274
|
}
|
|
1275
1275
|
) }),
|
package/dist/admin/index.js
CHANGED
package/dist/admin/index.mjs
CHANGED
package/dist/server/index.js
CHANGED
|
@@ -23547,7 +23547,8 @@ var auth$1 = {
|
|
|
23547
23547
|
...token2.context || {},
|
|
23548
23548
|
requiresTOTP: true,
|
|
23549
23549
|
totpVerified: false,
|
|
23550
|
-
userId: user2.id
|
|
23550
|
+
userId: user2.id,
|
|
23551
|
+
userDocumentId: user2.documentId
|
|
23551
23552
|
}
|
|
23552
23553
|
}
|
|
23553
23554
|
});
|
|
@@ -23792,11 +23793,18 @@ var auth$1 = {
|
|
|
23792
23793
|
ipAddress: ctx.request.ip
|
|
23793
23794
|
};
|
|
23794
23795
|
await magicLink2.updateTokenOnLogin(token2, requestInfo);
|
|
23795
|
-
|
|
23796
|
-
|
|
23797
|
-
|
|
23798
|
-
|
|
23799
|
-
|
|
23796
|
+
let user = null;
|
|
23797
|
+
if (context.userDocumentId) {
|
|
23798
|
+
user = await strapi.documents("plugin::users-permissions.user").findOne({
|
|
23799
|
+
documentId: context.userDocumentId
|
|
23800
|
+
});
|
|
23801
|
+
} else if (context.userId) {
|
|
23802
|
+
const users = await strapi.documents("plugin::users-permissions.user").findMany({
|
|
23803
|
+
filters: { id: context.userId },
|
|
23804
|
+
limit: 1
|
|
23805
|
+
});
|
|
23806
|
+
user = users && users.length > 0 ? users[0] : null;
|
|
23807
|
+
}
|
|
23800
23808
|
if (!user) {
|
|
23801
23809
|
return ctx.badRequest("User not found");
|
|
23802
23810
|
}
|
package/dist/server/index.mjs
CHANGED
|
@@ -23513,7 +23513,8 @@ var auth$1 = {
|
|
|
23513
23513
|
...token2.context || {},
|
|
23514
23514
|
requiresTOTP: true,
|
|
23515
23515
|
totpVerified: false,
|
|
23516
|
-
userId: user2.id
|
|
23516
|
+
userId: user2.id,
|
|
23517
|
+
userDocumentId: user2.documentId
|
|
23517
23518
|
}
|
|
23518
23519
|
}
|
|
23519
23520
|
});
|
|
@@ -23758,11 +23759,18 @@ var auth$1 = {
|
|
|
23758
23759
|
ipAddress: ctx.request.ip
|
|
23759
23760
|
};
|
|
23760
23761
|
await magicLink2.updateTokenOnLogin(token2, requestInfo);
|
|
23761
|
-
|
|
23762
|
-
|
|
23763
|
-
|
|
23764
|
-
|
|
23765
|
-
|
|
23762
|
+
let user = null;
|
|
23763
|
+
if (context.userDocumentId) {
|
|
23764
|
+
user = await strapi.documents("plugin::users-permissions.user").findOne({
|
|
23765
|
+
documentId: context.userDocumentId
|
|
23766
|
+
});
|
|
23767
|
+
} else if (context.userId) {
|
|
23768
|
+
const users = await strapi.documents("plugin::users-permissions.user").findMany({
|
|
23769
|
+
filters: { id: context.userId },
|
|
23770
|
+
limit: 1
|
|
23771
|
+
});
|
|
23772
|
+
user = users && users.length > 0 ? users[0] : null;
|
|
23773
|
+
}
|
|
23766
23774
|
if (!user) {
|
|
23767
23775
|
return ctx.badRequest("User not found");
|
|
23768
23776
|
}
|
package/package.json
CHANGED