Skip to content

πŸ”§ config.organizations.emailVerification {strict|off} β€” gate the hardcoded mailer branchΒ #3916

Description

@PierreBrisorgueil

Make email-verification a config-gated policy instead of a hardcoded conditional.

Today handleSignupOrganization hardcodes if (mailer.isConfigured() && !user.emailVerified) to defer org provisioning. Wrap it in config.organizations.emailVerification {mode: 'strict' | 'off'}:

  • strict = current behavior (unverified β†’ no membership β†’ no abilities). Default.
  • off = auto-provision regardless (identical to today's mailer-not-configured fallback). Reconcile off vs mailer-unconfigured so default-strict holds only when mailer is on.

Zero data-model change: derives from server-set emailVerified + createdAt. Keep emailVerified server-only (route the diff through the signup mass-assignment review). Coordinate with the emailVerified OAuth-annexation hardening item.

Created via /dev:issue

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions