Advertisement
Guest User

Untitled

a guest
Apr 20th, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. loginUser(username: string, password:string): Observable<IUserLoginInformation> {
  2.  
  3. return this.http.post(this._globalConstants.loginUrl,
  4. JSON.stringify({ username: username, password: password }))
  5. .map((res: Response) => res.json());
  6. }
  7.  
  8. login(){
  9. this._loginService.loginUser(this.username,this.password)
  10. .subscribe((data) => {
  11. this._userService.setUser(data);
  12. });
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement