fix: respect requested org (primary domain scope) for private labeling (#2561)

* fix: handle private labeling on login page without auth request

* fix: respect requested org (primary domain scope) for private labeling again

* respect requested org (primary domain scope) for private labeling
This commit is contained in:
Livio Amstutz 2021-10-22 15:53:28 +02:00 committed by GitHub
parent 22cfad8cb0
commit f5661c6e61
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -443,6 +443,9 @@ func (l *Login) getPrivateLabelingID(authReq *domain.AuthRequest) string {
privateLabelingOrgID = authReq.UserOrgID
}
}
if authReq.RequestedOrgID != "" {
privateLabelingOrgID = authReq.RequestedOrgID
}
return privateLabelingOrgID
}