From a341c65bb1145ed303ffaf4603fe8fd419d0a1f5 Mon Sep 17 00:00:00 2001 From: Yixiang Zhao Date: Wed, 17 Aug 2022 23:18:38 +0800 Subject: [PATCH] fix: third-party user may login to the built-in organization (#1024) Signed-off-by: Yixiang Zhao Signed-off-by: Yixiang Zhao --- web/src/auth/LoginPage.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/auth/LoginPage.js b/web/src/auth/LoginPage.js index 17f89e23..a7a9c98b 100644 --- a/web/src/auth/LoginPage.js +++ b/web/src/auth/LoginPage.js @@ -179,7 +179,7 @@ class LoginPage extends React.Component { values["type"] = "saml"; } - if (this.state.owner !== null) { + if (this.state.owner !== null && this.state.owner !== undefined) { values["organization"] = this.state.owner; }