#567 Login Component should emit object not strings

This commit is contained in:
Mario Romano
2016-08-12 17:09:39 +01:00
parent 100cd73ca8
commit 7c54df1333
2 changed files with 4 additions and 8 deletions

View File

@@ -108,15 +108,11 @@ export class AlfrescoLoginComponent {
.subscribe(
(token: any) => {
this.success = true;
this.onSuccess.emit({
value: 'Login OK'
});
this.onSuccess.emit(token);
},
(err: any) => {
this.error = true;
this.onError.emit({
value: 'Login KO'
});
this.onError.emit(err);
console.log(err);
this.success = false;
},