mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-03 20:50:19 +08:00
feat: Revert "feat: fix login page path after logout" (#2516)
This reverts commit 23d4488b64
.
This commit is contained in:
@ -492,14 +492,7 @@ class App extends Component {
|
||||
sessionStorage.setItem("from", window.location.pathname);
|
||||
return <Redirect to="/login" />;
|
||||
} else if (this.state.account === undefined) {
|
||||
sessionStorage.setItem("from", window.location.pathname);
|
||||
const organization = localStorage.getItem("loginOrganization");
|
||||
if (organization !== "undefined" && organization && organization !== "built-in") {
|
||||
const loginPath = `/login/${organization}`;
|
||||
return <Redirect to={loginPath} />;
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
return null;
|
||||
} else {
|
||||
return component;
|
||||
}
|
||||
|
Reference in New Issue
Block a user