ultisuite-client/lib/auth/signup-platform.ts
R3D347HR4Y 496b1dfc1f
Some checks are pending
E2E / Playwright e2e (push) Waiting to run
feat: enhance authentication flow with new password management and signup components
- Introduced PasswordFieldBlock component for improved password input handling, including visibility toggle and strength evaluation.
- Added SignupCredentialsFields component to streamline user signup with email availability checks and password confirmation.
- Updated FlowChallengeForm to integrate new components, enhancing user experience during authentication.
- Refactored CSS styles for consistent design across authentication components, ensuring a cohesive look and feel.
2026-06-19 23:47:16 +02:00

12 lines
424 B
TypeScript

/** Platform mail domain for self-service signup (Authentik enrollment). */
export const SIGNUP_MAIL_DOMAIN = "ultisuite.fr"
export function normalizeSignupLocalPart(raw: string): string {
return raw.replace(/@+/g, "").trim().toLowerCase()
}
export function buildSignupEmail(local: string): string {
const normalized = normalizeSignupLocalPart(local)
return normalized ? `${normalized}@${SIGNUP_MAIL_DOMAIN}` : ""
}