Login Component A2

ref #17
This commit is contained in:
mauriziovitale84
2016-04-18 14:30:36 +01:00
parent ccb1b3ed58
commit 9e413c0e09
3 changed files with 57 additions and 9 deletions

View File

@@ -42,8 +42,8 @@ export class Login {
}
onSubmit(value: any, event) {
//event.preventDefault();
this.auth.login(value.username, value.password)
event.preventDefault();
this.auth.login('POST', value.username, value.password)
.subscribe(
//(token: any) => this.router.navigate(['../Home']),
(token: any) => this.router.navigate(['Home']),