fix: third-party user may login to the built-in organization (#1024)

Signed-off-by: Yixiang Zhao <seriouszyx@foxmail.com>

Signed-off-by: Yixiang Zhao <seriouszyx@foxmail.com>
This commit is contained in:
Yixiang Zhao
2022-08-17 23:18:38 +08:00
committed by GitHub
parent 91fa024f0b
commit a341c65bb1

View File

@ -179,7 +179,7 @@ class LoginPage extends React.Component {
values["type"] = "saml"; values["type"] = "saml";
} }
if (this.state.owner !== null) { if (this.state.owner !== null && this.state.owner !== undefined) {
values["organization"] = this.state.owner; values["organization"] = this.state.owner;
} }