From 5c53e096ad8bb5f54518a0ed48f0ac5a89c05ccc Mon Sep 17 00:00:00 2001 From: yu-i-i Date: Tue, 16 Sep 2025 01:43:55 +0200 Subject: [PATCH] Fix imports after upstream converted `UserController` and `CaptchaMiddleware` to ESM --- services/web/modules/authentication/ldap/app/src/LDAPRouter.mjs | 2 +- .../oidc/app/src/OIDCAuthenticationController.mjs | 2 +- services/web/modules/authentication/oidc/app/src/OIDCRouter.mjs | 2 +- .../saml/app/src/SAMLAuthenticationController.mjs | 2 +- services/web/modules/authentication/saml/app/src/SAMLRouter.mjs | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/services/web/modules/authentication/ldap/app/src/LDAPRouter.mjs b/services/web/modules/authentication/ldap/app/src/LDAPRouter.mjs index d2bbb35236..9ebc3adc62 100644 --- a/services/web/modules/authentication/ldap/app/src/LDAPRouter.mjs +++ b/services/web/modules/authentication/ldap/app/src/LDAPRouter.mjs @@ -1,6 +1,6 @@ import logger from '@overleaf/logger' import RateLimiterMiddleware from '../../../../../app/src/Features/Security/RateLimiterMiddleware.js' -import CaptchaMiddleware from '../../../../../app/src/Features/Captcha/CaptchaMiddleware.js' +import CaptchaMiddleware from '../../../../../app/src/Features/Captcha/CaptchaMiddleware.mjs' import AuthenticationController from '../../../../../app/src/Features/Authentication/AuthenticationController.js' import { overleafLoginRateLimiter } from '../../../../../app/src/infrastructure/RateLimiter.js' import LDAPAuthenticationController from './LDAPAuthenticationController.mjs' diff --git a/services/web/modules/authentication/oidc/app/src/OIDCAuthenticationController.mjs b/services/web/modules/authentication/oidc/app/src/OIDCAuthenticationController.mjs index 9365c9ea73..1b91a2e27c 100644 --- a/services/web/modules/authentication/oidc/app/src/OIDCAuthenticationController.mjs +++ b/services/web/modules/authentication/oidc/app/src/OIDCAuthenticationController.mjs @@ -2,7 +2,7 @@ import logger from '@overleaf/logger' import passport from 'passport' import Settings from '@overleaf/settings' import AuthenticationController from '../../../../../app/src/Features/Authentication/AuthenticationController.js' -import UserController from '../../../../../app/src/Features/User/UserController.js' +import UserController from '../../../../../app/src/Features/User/UserController.mjs' import ThirdPartyIdentityManager from '../../../../../app/src/Features/User/ThirdPartyIdentityManager.js' import OIDCAuthenticationManager from './OIDCAuthenticationManager.mjs' import { acceptsJson } from '../../../../../app/src/infrastructure/RequestContentTypeDetection.js' diff --git a/services/web/modules/authentication/oidc/app/src/OIDCRouter.mjs b/services/web/modules/authentication/oidc/app/src/OIDCRouter.mjs index 0857e41889..a3a3d5431a 100644 --- a/services/web/modules/authentication/oidc/app/src/OIDCRouter.mjs +++ b/services/web/modules/authentication/oidc/app/src/OIDCRouter.mjs @@ -1,5 +1,5 @@ import logger from '@overleaf/logger' -import UserController from '../../../../../app/src/Features/User/UserController.js' +import UserController from '../../../../../app/src/Features/User/UserController.mjs' import AuthenticationController from '../../../../../app/src/Features/Authentication/AuthenticationController.js' import OIDCAuthenticationController from './OIDCAuthenticationController.mjs' import logout from '../../../logout.mjs' diff --git a/services/web/modules/authentication/saml/app/src/SAMLAuthenticationController.mjs b/services/web/modules/authentication/saml/app/src/SAMLAuthenticationController.mjs index 3ed834608f..38dc594bb4 100644 --- a/services/web/modules/authentication/saml/app/src/SAMLAuthenticationController.mjs +++ b/services/web/modules/authentication/saml/app/src/SAMLAuthenticationController.mjs @@ -3,7 +3,7 @@ import logger from '@overleaf/logger' import passport from 'passport' import AuthenticationController from '../../../../../app/src/Features/Authentication/AuthenticationController.js' import SAMLAuthenticationManager from './SAMLAuthenticationManager.mjs' -import UserController from '../../../../../app/src/Features/User/UserController.js' +import UserController from '../../../../../app/src/Features/User/UserController.mjs' import UserSessionsManager from '../../../../../app/src/Features/User/UserSessionsManager.js' import { handleAuthenticateErrors } from '../../../../../app/src/Features/Authentication/AuthenticationErrors.js' import { xmlResponse } from '../../../../../app/src/infrastructure/Response.js' diff --git a/services/web/modules/authentication/saml/app/src/SAMLRouter.mjs b/services/web/modules/authentication/saml/app/src/SAMLRouter.mjs index 3cd6e56e2d..e7e453d314 100644 --- a/services/web/modules/authentication/saml/app/src/SAMLRouter.mjs +++ b/services/web/modules/authentication/saml/app/src/SAMLRouter.mjs @@ -1,6 +1,6 @@ import logger from '@overleaf/logger' import AuthenticationController from '../../../../../app/src/Features/Authentication/AuthenticationController.js' -import UserController from '../../../../../app/src/Features/User/UserController.js' +import UserController from '../../../../../app/src/Features/User/UserController.mjs' import SAMLAuthenticationController from './SAMLAuthenticationController.mjs' import logout from '../../../logout.mjs'