mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
rename two times service class just once
move responsability providers configurration in setting service refactoring
This commit is contained in:
@@ -126,6 +126,9 @@ class MyDemoApp {
|
||||
|
||||
constructor(public alfrescoAuthenticationService: AlfrescoAuthenticationService,
|
||||
private alfrescoSettingsService: AlfrescoSettingsService) {
|
||||
|
||||
alfrescoSettingsService.ecmHost = this.ecmHost;
|
||||
alfrescoSettingsService.setProviders('ECM');
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
@@ -133,7 +136,7 @@ class MyDemoApp {
|
||||
}
|
||||
|
||||
login() {
|
||||
this.alfrescoAuthenticationService.login('admin', 'admin', 'ECM').subscribe(
|
||||
this.alfrescoAuthenticationService.login('admin', 'admin').subscribe(
|
||||
token => {
|
||||
this.token = token.ticket;
|
||||
this.authenticated = true;
|
||||
|
Reference in New Issue
Block a user