Some checks are pending
E2E / Playwright e2e (push) Waiting to run
- 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.
12 lines
424 B
TypeScript
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}` : ""
|
|
}
|