mirror of
https://github.com/casdoor/casdoor.git
synced 2025-05-23 02:35:49 +08:00
Revert "feat: fix login page path after logout (#2493)"
This reverts commit 23d4488b647161da67c530ddb61bbdfff0981698.
This commit is contained in:
parent
c4a6f07672
commit
94c7923c0e
@ -492,14 +492,7 @@ class App extends Component {
|
|||||||
sessionStorage.setItem("from", window.location.pathname);
|
sessionStorage.setItem("from", window.location.pathname);
|
||||||
return <Redirect to="/login" />;
|
return <Redirect to="/login" />;
|
||||||
} else if (this.state.account === undefined) {
|
} else if (this.state.account === undefined) {
|
||||||
sessionStorage.setItem("from", window.location.pathname);
|
return null;
|
||||||
const organization = localStorage.getItem("loginOrganization");
|
|
||||||
if (organization !== "undefined" && organization && organization !== "built-in") {
|
|
||||||
const loginPath = `/login/${organization}`;
|
|
||||||
return <Redirect to={loginPath} />;
|
|
||||||
} else {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
return component;
|
return component;
|
||||||
}
|
}
|
||||||
|
@ -411,7 +411,6 @@ class LoginPage extends React.Component {
|
|||||||
};
|
};
|
||||||
|
|
||||||
if (res.status === "ok") {
|
if (res.status === "ok") {
|
||||||
localStorage.setItem("loginOrganization", values["organization"]);
|
|
||||||
if (res.data === NextMfa) {
|
if (res.data === NextMfa) {
|
||||||
this.setState({
|
this.setState({
|
||||||
getVerifyTotp: () => {
|
getVerifyTotp: () => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user