From f8cabb024b4a76ac1cd8c339ee2f38250b66fb23 Mon Sep 17 00:00:00 2001 From: Marc Khouzam Date: Fri, 13 Sep 2024 12:35:04 -0400 Subject: [PATCH] Fix missing org name in browser login Signed-off-by: Marc Khouzam --- pkg/auth/common/login_handler.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/auth/common/login_handler.go b/pkg/auth/common/login_handler.go index 83e320867..432cf1e3b 100644 --- a/pkg/auth/common/login_handler.go +++ b/pkg/auth/common/login_handler.go @@ -354,7 +354,7 @@ func printSuccessMessage(w http.ResponseWriter, orgName string) { } func (h *TanzuLoginHandler) getOrganizationName() (string, error) { - if h.idpType == config.UAAIdpType || h.orgNameGetter != nil { + if h.idpType == config.UAAIdpType || h.orgNameGetter == nil { return "", nil }