feat(F-099): completed feature
This commit is contained in:
@@ -45,6 +45,7 @@ import { LoggingEmailProvider } from '../modules/notifications/index.js';
|
||||
import { createFlagStore, type FeatureFlagProvider } from '../modules/flags/index.js';
|
||||
import { AppError, errorEnvelope } from '../shared/errors.js';
|
||||
import { createLogger, type Logger } from '../infrastructure/logging/logger.js';
|
||||
import { SettingsPasswordResetMailer } from '../modules/identity/infrastructure/settings-password-reset-mailer.js';
|
||||
|
||||
declare module 'fastify' {
|
||||
interface FastifyInstance {
|
||||
@@ -185,6 +186,7 @@ export async function buildApp(deps: BuildAppDeps = {}): Promise<FastifyInstance
|
||||
cookieSecure: deps.cookieSecure,
|
||||
authenticate,
|
||||
passwordReset: {
|
||||
mailer: new SettingsPasswordResetMailer(deps.pool as pg.Pool),
|
||||
audit: (entry) => {
|
||||
// Best-effort audit; never block the request on audit failures.
|
||||
void auditLogger
|
||||
|
||||
Reference in New Issue
Block a user