Token validation

This commit is contained in:
Manuel Hude
2021-03-20 16:22:25 +01:00
parent fed5414b5f
commit d541b80cf2
3 changed files with 10 additions and 23 deletions
@@ -64,8 +64,9 @@ export class LoginComponent implements OnInit {
};
return this.http.get('http://localhost:8000/api/login',
{
headers: new HttpHeaders(headerDict)
headers: new HttpHeaders(headerDict),
observe: 'response',
})
.subscribe(data => console.log(data));
.subscribe(data => alert("Returned with code: "+data['status']));
}
}