mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-10-08 14:51:32 +00:00
Code improvements
- move auth token out of the document list (to the settings service for now) refs #9
This commit is contained in:
@@ -14,6 +14,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import {Injectable} from 'angular2/core';
|
||||
|
||||
@Injectable()
|
||||
@@ -27,4 +28,9 @@ export class AlfrescoSettingsService {
|
||||
public set host(value:string) {
|
||||
this._host = value;
|
||||
}
|
||||
|
||||
getAuthToken(): string {
|
||||
// todo: get proper token value
|
||||
return 'Basic ' + btoa('admin:admin');
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user