mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
#567 Login Component should emit object not strings
This commit is contained in:
@@ -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;
|
||||
},
|
||||
|
Reference in New Issue
Block a user