This commit is contained in:
Le Deng
2017-03-11 10:34:13 -05:00
parent b3579d50c8
commit d826f575f8
3 changed files with 6 additions and 4 deletions

View File

@@ -1007,12 +1007,12 @@
<workItem from="1488378219247" duration="650000" />
<workItem from="1488461561430" duration="18419000" />
<workItem from="1488731165185" duration="30270000" />
<workItem from="1489159532831" duration="12546000" />
<workItem from="1489159532831" duration="12604000" />
</task>
<servers />
</component>
<component name="TimeTrackingManager">
<option name="totallyTimeSpent" value="104828000" />
<option name="totallyTimeSpent" value="104886000" />
</component>
<component name="ToolWindowManager">
<frame x="72" y="23" width="1280" height="797" extended-state="0" />

View File

@@ -274,6 +274,8 @@ export class MyProfileComponent implements OnInit {
},
error => {
this.loggedIn=false;
console.log("inactive session");
this.router.navigate(['/myAccount']);
}
);

View File

@@ -2,13 +2,13 @@ import { Injectable } from '@angular/core';
import {Http, Headers} from '@angular/http';
import {Observable} from 'rxjs/Observable';
import {AppConst} from '../constants/app-const';
import {Router} from "@angular/router";
@Injectable()
export class LoginService {
private serverPath:string = AppConst.serverPath;
constructor (private http: Http) {}
constructor (private http: Http, private router:Router) {}
sendCredential(username: string, password: string) {
let url = this.serverPath+"/token";