mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-03 20:50:19 +08:00
fix: display "Continue with (User)" button of another organization (#327)
Signed-off-by: Lex Lim <hyperzlink@outlook.com>
This commit is contained in:
@ -386,6 +386,10 @@ class LoginPage extends React.Component {
|
||||
if (this.props.account === undefined || this.props.account === null) {
|
||||
return null;
|
||||
}
|
||||
let application = this.getApplicationObj()
|
||||
if (this.props.account.owner !== application.organization) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return (
|
||||
<div>
|
||||
|
Reference in New Issue
Block a user