]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/angular/users/services/auth.service.ts
Add typescript (and angular2) linter
[github/Chocobozzz/PeerTube.git] / client / angular / users / services / auth.service.ts
index a512c3d9cda2697911d9cfd92bd81154526ef1f1..80886346ca529f39d841e084df51184bd09aa24b 100644 (file)
@@ -2,19 +2,18 @@ import { Injectable } from 'angular2/core';
 import { Http, Response, Headers, URLSearchParams } from 'angular2/http';
 import { Observable, Subject } from 'rxjs/Rx';
 
-import { Token } from '../models/token';
 import { AuthStatus } from '../models/authStatus';
 
 @Injectable()
 export class AuthService {
+  loginChanged$ = this._loginChanged.asObservable();
+
   private _loginChanged = new Subject<AuthStatus>();
 
   private _baseLoginUrl = '/api/v1/users/token';
   private _clientId = '56f055587305d40b21904240';
   private _clientSecret = 'megustalabanana';
 
-  loginChanged$ = this._loginChanged.asObservable();
-
   constructor (private http: Http) {}
 
   login(username: string, password: string) {
@@ -32,7 +31,7 @@ export class AuthService {
 
     let options = {
       headers: headers
-    }
+    };
 
     return this.http.post(this._baseLoginUrl, body.toString(), options)
                     .map(res => res.json())