mirror of
https://github.com/lemeow125/React-NotesApp.git
synced 2024-11-17 06:29:28 +08:00
Dirty fix for userlogin api
This commit is contained in:
parent
836220f557
commit
66c934c34f
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@ export function UserLogin(user: user) {
|
||||||
return axios
|
return axios
|
||||||
.post("http://localhost:8000/api/v1/accounts/token/login/", user)
|
.post("http://localhost:8000/api/v1/accounts/token/login/", user)
|
||||||
.then(async (response) => {
|
.then(async (response) => {
|
||||||
console.log("Login Success! Token: " + response.data);
|
console.log(response.data);
|
||||||
localStorage.setItem("token", response.data);
|
localStorage.setItem("token", response.data);
|
||||||
console.log(await UserInfo());
|
console.log(await UserInfo());
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in a new issue