diff options
| author | Wolfboy248 <georgejvindkarlsen@gmail.com> | 2024-10-22 09:34:52 +0200 |
|---|---|---|
| committer | Wolfboy248 <georgejvindkarlsen@gmail.com> | 2024-10-22 09:34:52 +0200 |
| commit | 8de619c5a0899f1eff2d74b003480891f740e2c0 (patch) | |
| tree | 3a0a34bacfadcf47ff70122631d6986dfface52a /frontend/src/components/Login.tsx | |
| parent | frontend: get first non disabled map (diff) | |
| download | lphub-8de619c5a0899f1eff2d74b003480891f740e2c0.tar.gz lphub-8de619c5a0899f1eff2d74b003480891f740e2c0.tar.bz2 lphub-8de619c5a0899f1eff2d74b003480891f740e2c0.zip | |
refactor: hook updated
Diffstat (limited to 'frontend/src/components/Login.tsx')
| -rw-r--r-- | frontend/src/components/Login.tsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/frontend/src/components/Login.tsx b/frontend/src/components/Login.tsx index a8c5503..77236ce 100644 --- a/frontend/src/components/Login.tsx +++ b/frontend/src/components/Login.tsx | |||
| @@ -17,7 +17,8 @@ const Login: React.FC<LoginProps> = ({ setToken, profile, setProfile }) => { | |||
| 17 | const navigate = useNavigate(); | 17 | const navigate = useNavigate(); |
| 18 | 18 | ||
| 19 | const _login = () => { | 19 | const _login = () => { |
| 20 | window.location.href = "/api/v1/login"; | 20 | setToken("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE3MzExNjU1NTgsIm1vZCI6dHJ1ZSwic3ViIjoiNzY1NjExOTgxMzE2Mjk5ODkifQ.KoENjj6Z41-QQu1VKvgAiACsjLK7IoVWlJgrGdr6s24"); |
| 21 | // window.location.href = "/api/v1/login"; | ||
| 21 | }; | 22 | }; |
| 22 | 23 | ||
| 23 | const _logout = () => { | 24 | const _logout = () => { |