From dffa68cbce48969f13869bf885c7d3fb420c08ef Mon Sep 17 00:00:00 2001 From: chao Date: Thu, 20 Oct 2022 01:14:38 +0800 Subject: [PATCH] feat: fix SAML login error bug (#1228) * Update LoginPage.js * fix saml login error --- web/src/auth/LoginPage.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/src/auth/LoginPage.js b/web/src/auth/LoginPage.js index 55ca8cea..7c172edb 100644 --- a/web/src/auth/LoginPage.js +++ b/web/src/auth/LoginPage.js @@ -156,8 +156,8 @@ class LoginPage extends React.Component { values["type"] = "saml"; } - if (this.state.owner !== null && this.state.owner !== undefined) { - values["organization"] = this.state.owner; + if (this.state.application.organization !== null && this.state.application.organization !== undefined) { + values["organization"] = this.state.application.organization; } } postCodeLoginAction(res) {