Fix token problem

This commit is contained in:
mauriziovitale84
2016-07-08 12:55:14 +01:00
parent f7dee66d1e
commit e8c363e520
9 changed files with 25 additions and 26 deletions

View File

@@ -67,8 +67,8 @@ class SearchDemo implements OnInit {
translation: AlfrescoTranslationService) {
alfrescoSettingsService.host = this.host;
if (localStorage.getItem('token')) {
this.token = localStorage.getItem('token');
if (this.authService.getToken()) {
this.token = this.authService.getToken();
}
translation.addTranslationFolder();