fix: display "Continue with (User)" button of another organization (#327)

Signed-off-by: Lex Lim <hyperzlink@outlook.com>
This commit is contained in:
Lex Lim
2021-11-11 20:43:26 +08:00
committed by GitHub
parent cc933cf5f3
commit abba56a6f3

View File

@ -386,6 +386,10 @@ class LoginPage extends React.Component {
if (this.props.account === undefined || this.props.account === null) { if (this.props.account === undefined || this.props.account === null) {
return null; return null;
} }
let application = this.getApplicationObj()
if (this.props.account.owner !== application.organization) {
return null;
}
return ( return (
<div> <div>