Update auth-password-service.ts

This commit is contained in:
Daniel Hougaard
2025-03-07 20:15:30 +04:00
parent 67f2e4671a
commit 795d9e4413

View File

@@ -25,6 +25,7 @@ import {
TSetupPasswordViaBackupKeyDTO
} from "./auth-password-type";
import { ActorType, AuthMethod, AuthTokenType } from "./auth-type";
import { logger } from "@app/lib/logger";
type TAuthPasswordServiceFactoryDep = {
authDAL: TAuthDALFactory;
@@ -143,7 +144,7 @@ export const authPaswordServiceFactory = ({
};
// note(daniel): run in background to prevent timing attacks
void sendEmail();
void sendEmail().catch((err) => logger.error(err, "Failed to send password reset email"));
};
/*