mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-10 19:28:51 +00:00
Update auth-password-service.ts
This commit is contained in:
@@ -25,6 +25,7 @@ import {
|
|||||||
TSetupPasswordViaBackupKeyDTO
|
TSetupPasswordViaBackupKeyDTO
|
||||||
} from "./auth-password-type";
|
} from "./auth-password-type";
|
||||||
import { ActorType, AuthMethod, AuthTokenType } from "./auth-type";
|
import { ActorType, AuthMethod, AuthTokenType } from "./auth-type";
|
||||||
|
import { logger } from "@app/lib/logger";
|
||||||
|
|
||||||
type TAuthPasswordServiceFactoryDep = {
|
type TAuthPasswordServiceFactoryDep = {
|
||||||
authDAL: TAuthDALFactory;
|
authDAL: TAuthDALFactory;
|
||||||
@@ -143,7 +144,7 @@ export const authPaswordServiceFactory = ({
|
|||||||
};
|
};
|
||||||
|
|
||||||
// note(daniel): run in background to prevent timing attacks
|
// note(daniel): run in background to prevent timing attacks
|
||||||
void sendEmail();
|
void sendEmail().catch((err) => logger.error(err, "Failed to send password reset email"));
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
Reference in New Issue
Block a user