diff --git a/web/src/App.js b/web/src/App.js
index 4741eef5..77560c8d 100644
--- a/web/src/App.js
+++ b/web/src/App.js
@@ -492,14 +492,7 @@ class App extends Component {
sessionStorage.setItem("from", window.location.pathname);
return ;
} 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 ;
- } else {
- return null;
- }
+ return null;
} else {
return component;
}
diff --git a/web/src/auth/LoginPage.js b/web/src/auth/LoginPage.js
index 49f8401c..a7f862d6 100644
--- a/web/src/auth/LoginPage.js
+++ b/web/src/auth/LoginPage.js
@@ -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: () => {