Revert "feat: fix login page path after logout (#2493)"

This reverts commit 23d4488b647161da67c530ddb61bbdfff0981698.
This commit is contained in:
hsluoyz 2023-11-24 15:33:59 +08:00 committed by GitHub
parent c4a6f07672
commit 94c7923c0e
2 changed files with 1 additions and 9 deletions

View File

@ -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;
}
} else {
return component;
}

View File

@ -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: () => {