mirror of
https://github.com/casdoor/casdoor.git
synced 2025-05-23 02:35:49 +08:00
Fix the bug that sometimes cannot auto login with enableAutoSignin = true
This commit is contained in:
parent
a10548fe73
commit
1732cd8538
@ -99,8 +99,10 @@ class LoginPage extends React.Component {
|
||||
this.setState({enableCaptchaModal: CaptchaRule.Never});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (this.props.account && this.props.account.owner === this.props.application?.organization) {
|
||||
if (prevProps.account !== this.props.account && this.props.account !== undefined) {
|
||||
if (this.props.account.owner === this.props.application?.organization) {
|
||||
const params = new URLSearchParams(this.props.location.search);
|
||||
const silentSignin = params.get("silentSignin");
|
||||
if (silentSignin !== null) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user