refactor(client): refactor clients component (#109)

* refactor(client): refactor clients component
This commit is contained in:
Anwesh Nayak
2018-07-08 05:45:46 +05:30
committed by GitHub
parent d7c098fd5c
commit c48daa2703
2 changed files with 22 additions and 5 deletions
+1 -1
View File
@@ -10,7 +10,7 @@ import { map } from 'rxjs/operators';
export class ClientsService {
constructor(private http: Http) {} // tslint:disable-line
createAuthorizationHeader(headers: Headers) {
createAuthorizationHeader(headers: Headers) { // tslint:disable-line
const username = 'mifos';
const password = 'password';
headers.append('Authorization', 'Basic ' + btoa(username + ':' + password));