ublo-lib 1.39.38 → 1.39.39
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"middleware.d.ts","sourceRoot":"","sources":["../../../../../src/esf/components/espace-prive/services/middleware.js"],"names":[],"mappings":"AAEO,
|
|
1
|
+
{"version":3,"file":"middleware.d.ts","sourceRoot":"","sources":["../../../../../src/esf/components/espace-prive/services/middleware.js"],"names":[],"mappings":"AAEO,kGAyDN;6BA3D4B,aAAa"}
|
|
@@ -11,7 +11,8 @@ export const middleware = (site, api) => async (request) => {
|
|
|
11
11
|
return NextResponse.next();
|
|
12
12
|
}
|
|
13
13
|
if (pathname.startsWith("/espace-prive") &&
|
|
14
|
-
!pathname.endsWith("connexion/")
|
|
14
|
+
!pathname.endsWith("connexion/") &&
|
|
15
|
+
!pathname.endsWith("contact/")) {
|
|
15
16
|
try {
|
|
16
17
|
const password = request.cookies.get("password")?.value || "no-password";
|
|
17
18
|
const response = await fetch(`${api}/check-auth?site=${site}&password=${password}&partnerID=${partnerID}&id=${clientID}${email ? `&email=${email}` : ""}`);
|