From b6cd0f7228daca9f7d26ff47502219c54e00aad9 Mon Sep 17 00:00:00 2001 From: Muthu Kumar Date: Wed, 12 Aug 2020 15:46:54 +0530 Subject: [PATCH] fix: Login --- react/src/App.js | 2 +- react/src/pages/Login.js | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/react/src/App.js b/react/src/App.js index d0fc342..c4baea6 100644 --- a/react/src/App.js +++ b/react/src/App.js @@ -10,7 +10,7 @@ function App() { - + ); } diff --git a/react/src/pages/Login.js b/react/src/pages/Login.js index c48ded0..bcb6fb4 100644 --- a/react/src/pages/Login.js +++ b/react/src/pages/Login.js @@ -136,8 +136,7 @@ function LoginForm({ showRegister }) { const data = await response.json(); window.localStorage.setItem("Token", data.token); - alert("Successfully logged in with the token " + data.token); - // TODO: + window.location = "/search"; } catch (e) { setError(e.message); }