Skip to content

feat(organizations): require email verification before domain-based auto-join #3232

@PierreBrisorgueil

Description

@PierreBrisorgueil

Problem

Domain is auto-set from the creator's email without ownership verification. This enables domain squatting — any user with a matching email can claim a domain and trigger auto-join for future users.

Proposed fix

  • Block domain matching and auto-join until emailVerified: true on the user account
  • Add explicit domain ownership verification flow before allowing domain-based features

References

  • modules/organizations/services/organizations.crud.service.js (create + searchByDomain)
  • modules/organizations/services/organizations.service.js (signup flow)

Metadata

Metadata

Assignees

No one assigned

    Labels

    FeatA new feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions