Token validation
This commit is contained in:
@@ -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']));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user