Merge pull request #4309 from Infisical/log-available-auth-methods-on-pass-reset

Log available auth methods on password reset
This commit is contained in:
x032205
2025-08-04 16:22:44 -04:00
committed by GitHub

View File

@@ -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" });
}