Merge SfCompletionWorkflow and NewCustomerSignupWorkflow into a single AccountCreationWorkflowService, remove legacy /auth/migrate endpoint and WhmcsLinkWorkflow, extract shared OTP email pattern into OtpEmailService, and improve PORTAL_EXISTS redirect UX with email pre-fill. - Consolidate signup/ directory services into steps/ (PortalUserCreationService, WhmcsCleanupService) and new AccountCreationWorkflowService - Rename WhmcsMigrationWorkflowService to AccountMigrationWorkflowService - Remove dead code: WhmcsLinkWorkflowService, auth.controller /migrate endpoint - Extract OtpEmailService from duplicated login/verification OTP email logic - Pass email query param on PORTAL_EXISTS redirect for login pre-fill - Delete 1977 lines of legacy code, add ~350 lines of consolidated logic
19 lines
625 B
TypeScript
19 lines
625 B
TypeScript
import { Module } from "@nestjs/common";
|
|
|
|
import { OtpService } from "../infra/otp/otp.service.js";
|
|
import { OtpEmailService } from "../infra/otp/otp-email.service.js";
|
|
import { GetStartedSessionService } from "../infra/otp/get-started-session.service.js";
|
|
|
|
/**
|
|
* OTP Module
|
|
*
|
|
* Owns OTP generation/verification, OTP email sending,
|
|
* and get-started session management.
|
|
* Services are exported for use by LoginModule and GetStartedModule.
|
|
*/
|
|
@Module({
|
|
providers: [OtpService, OtpEmailService, GetStartedSessionService],
|
|
exports: [OtpService, OtpEmailService, GetStartedSessionService],
|
|
})
|
|
export class OtpModule {}
|