mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +00:00
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:
@@ -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" });
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user