diff options
| author | Wolfboy248 <georgejvindkarlsen@gmail.com> | 2024-11-01 17:56:35 +0100 |
|---|---|---|
| committer | Wolfboy248 <georgejvindkarlsen@gmail.com> | 2024-11-01 17:56:35 +0100 |
| commit | a6a5735e4869ac9835a0b2a1f7740448ecd63449 (patch) | |
| tree | 7f58458483f74d938adf9cae7d2b98e169401261 /frontend/src/components/Login.tsx | |
| parent | frontend: convert all native confirm and alerts to custom hooks (diff) | |
| download | lphub-a6a5735e4869ac9835a0b2a1f7740448ecd63449.tar.gz lphub-a6a5735e4869ac9835a0b2a1f7740448ecd63449.tar.bz2 lphub-a6a5735e4869ac9835a0b2a1f7740448ecd63449.zip | |
frontend: uploadrundialog.tsx
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 545f724..d33e25e 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.eyJleHAiOjE3MzI3Nzg0NTEsIm1vZCI6ZmFsc2UsInN1YiI6Ijc2NTYxMTk5MDg4MjU3MDk4In0.MwYcAy1q463-A2qxLn3Dk4T7ECwta_x4h-CJOTB6VZY"); |
| 21 | // window.location.href = "/api/v1/login"; | ||
| 21 | }; | 22 | }; |
| 22 | 23 | ||
| 23 | const _logout = () => { | 24 | const _logout = () => { |