Log available auth methods on password reset

This commit is contained in:
x032205
2025-08-04 16:16:52 -04:00
parent e852cd8b4a
commit 899b7fe024

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