feat(F-152): completed feature
This commit is contained in:
@@ -14,7 +14,12 @@ import type { IncomingMessage } from 'node:http';
|
||||
import type pg from 'pg';
|
||||
import { swaggerConfig } from '../shared/swagger.js';
|
||||
import { registerHealthRoutes } from '../modules/health/index.js';
|
||||
import { registerIdentityRoutes, createSessionAuthenticator } from '../modules/identity/index.js';
|
||||
import {
|
||||
createSessionAuthenticator,
|
||||
registerIdentityRoutes,
|
||||
SettingsPasswordResetMailer,
|
||||
SettingsWelcomeMailer,
|
||||
} from '../modules/identity/index.js';
|
||||
import {
|
||||
registerBackofficeRoutes,
|
||||
createBackofficeSessionAuthenticator,
|
||||
@@ -45,7 +50,6 @@ 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 +189,7 @@ export async function buildApp(deps: BuildAppDeps = {}): Promise<FastifyInstance
|
||||
pool: deps.pool as pg.Pool,
|
||||
cookieSecure: deps.cookieSecure,
|
||||
authenticate,
|
||||
welcomeMailer: new SettingsWelcomeMailer(deps.pool as pg.Pool),
|
||||
passwordReset: {
|
||||
mailer: new SettingsPasswordResetMailer(deps.pool as pg.Pool),
|
||||
audit: (entry) => {
|
||||
|
||||
Reference in New Issue
Block a user