From 66c934c34fa3a9c59aa1cb3d6409a5b333d7912a Mon Sep 17 00:00:00 2001 From: keannu125 Date: Sun, 26 Feb 2023 12:08:11 +0800 Subject: [PATCH] Dirty fix for userlogin api --- src/Components/Api/Api.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Components/Api/Api.tsx b/src/Components/Api/Api.tsx index 3f844a2..b7f6f5a 100644 --- a/src/Components/Api/Api.tsx +++ b/src/Components/Api/Api.tsx @@ -32,7 +32,7 @@ export function UserLogin(user: user) { return axios .post("http://localhost:8000/api/v1/accounts/token/login/", user) .then(async (response) => { - console.log("Login Success! Token: " + response.data); + console.log(response.data); localStorage.setItem("token", response.data); console.log(await UserInfo()); return true;