From 899b7fe0240d4a56d538b8a739f8de7d37550f5a Mon Sep 17 00:00:00 2001 From: x032205 Date: Mon, 4 Aug 2025 16:16:52 -0400 Subject: [PATCH] Log available auth methods on password reset --- backend/src/services/auth/auth-password-service.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/backend/src/services/auth/auth-password-service.ts b/backend/src/services/auth/auth-password-service.ts index 0dbdfaf79..c0629f561 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" }); }