Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- loginUser(username: string, password:string): Observable<IUserLoginInformation> {
- return this.http.post(this._globalConstants.loginUrl,
- JSON.stringify({ username: username, password: password }))
- .map((res: Response) => res.json());
- }
- login(){
- this._loginService.loginUser(this.username,this.password)
- .subscribe((data) => {
- this._userService.setUser(data);
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement