Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- login(user:any) {
- console.log(user);
- const body = `username=${user.username}&password=${user.password}`;
- const headers = new Headers();
- headers.append('Content-Type', 'application/x-www-form-urlencoded');
- return this.apiService.post(this.url, body, headers);
- }
- login(user:any) {
- console.log(user);
- const body = `username=${user.username}&password=${user.password}`;
- const headers = new Headers();
- headers.append('Content-Type', 'application/x-www-form-urlencoded');
- return this.apiService.post(this.url, body, headers);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement