mirror of
https://github.com/andwati/zitadel.git
synced 2026-10-28 01:52:16 +00:00
# Which Problems Are Solved When users accessed the login page without an organization context and entered a login name with a domain suffix (e.g., [[email protected]], the system would return "user not found" instead of performing organization discovery. # How the Problems Are Solved Added organization discovery logic that triggers after a global user search returns no results. When no organization context is provided: - Extracts the domain suffix from the loginName (e.g., @company.com) - Queries for organizations with that domain as their primary domain - If exactly one organization is found with allowDomainDiscovery enabled, uses it as the discovered organization - Redirects users to the appropriate flow (IDP, registration, or password) with the discovered organization context --------- Co-authored-by: Ramon <[email protected]>