mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-09-17 14:21:29 +00:00
Fix token problem
This commit is contained in:
@@ -83,8 +83,8 @@ export class MyDemoApp implements OnInit {
|
||||
constructor(private authService: AlfrescoAuthenticationService, private alfrescoSettingsService: AlfrescoSettingsService) {
|
||||
alfrescoSettingsService.host = this.host;
|
||||
|
||||
if (localStorage.getItem('token')) {
|
||||
this.token = localStorage.getItem('token');
|
||||
if (this.authService.getToken()) {
|
||||
this.token = this.authService.getToken();
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user