Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

Log available auth methods on password reset

x032205899b7fe0240d
diff --git a/backend/src/services/auth/auth-password-service.ts b/backend/src/services/auth/auth-password-service.ts
index 0dbdfaf796..c0629f5615 100644
--- a/backend/src/services/auth/auth-password-service.ts
+++ b/backend/src/services/auth/auth-password-service.ts
@@ -193,6 +193,10 @@ export const authPaswordServiceFactory = ({
}
if (!user.authMethods?.includes(AuthMethod.EMAIL)) {
+ logger.error(
+ { authMethods: user.authMethods },
+ "Unable to reset password, no email authentication method is configured"
+ );
throw new BadRequestError({ message: "Unable to reset password, no email authentication method is configured" });
}