latest
This commit is contained in:
4
bookstore-api/.idea/workspace.xml
generated
4
bookstore-api/.idea/workspace.xml
generated
@@ -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" />
|
||||
|
||||
@@ -274,6 +274,8 @@ export class MyProfileComponent implements OnInit {
|
||||
},
|
||||
error => {
|
||||
this.loggedIn=false;
|
||||
console.log("inactive session");
|
||||
this.router.navigate(['/myAccount']);
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user