fix: registration allowed check and pass loginname to registration (#4507)

This commit is contained in:
Livio Spring
2022-10-07 14:17:17 +02:00
committed by GitHub
parent d775020a32
commit 3b03ad82bf
3 changed files with 43 additions and 3 deletions

View File

@@ -713,6 +713,7 @@ func (repo *AuthRequestRepo) checkDomainDiscovery(ctx context.Context, request *
}
// discovery was allowed, so set the org as requested org
request.SetOrgInformation(org.ID, org.Name, org.Domain, false)
request.LoginHint = loginName
request.Prompt = append(request.Prompt, domain.PromptCreate)
return true
}