Dirty fix for userlogin api

This commit is contained in:
keannu125 2023-02-26 12:08:11 +08:00
parent 836220f557
commit 66c934c34f

View file

@ -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;