mirror of
https://github.com/casdoor/casdoor.git
synced 2025-05-23 02:35:49 +08:00
feat: Revert "feat: fix login page path after logout" (#2516)
This reverts commit 23d4488b647161da67c530ddb61bbdfff0981698.
This commit is contained in:
parent
c4a6f07672
commit
fd0c70a827
@ -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;
|
||||
}
|
||||
|
@ -411,7 +411,6 @@ class LoginPage extends React.Component {
|
||||
};
|
||||
|
||||
if (res.status === "ok") {
|
||||
localStorage.setItem("loginOrganization", values["organization"]);
|
||||
if (res.data === NextMfa) {
|
||||
this.setState({
|
||||
getVerifyTotp: () => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user