mirror of
https://github.com/zitadel/zitadel.git
synced 2025-01-12 10:23:52 +00:00
fix: clear potentially existing user information on auth request for domain discovery (#4528)
This commit is contained in:
parent
c0f65088a1
commit
6daf44a34a
@ -712,9 +712,11 @@ func (repo *AuthRequestRepo) checkDomainDiscovery(ctx context.Context, request *
|
||||
return false
|
||||
}
|
||||
// discovery was allowed, so set the org as requested org
|
||||
// and clear all potentially existing user information and only set the loginname as hint (for registration)
|
||||
request.SetOrgInformation(org.ID, org.Name, org.Domain, false)
|
||||
request.SetUserInfo("", "", "", "", "", org.ID)
|
||||
request.LoginHint = loginName
|
||||
request.Prompt = append(request.Prompt, domain.PromptCreate)
|
||||
request.Prompt = append(request.Prompt, domain.PromptCreate) // to trigger registration
|
||||
return true
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user