Guest User

Untitled

a guest
Feb 6th, 2018
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. export class AuthService {
  2. login: string = "";
  3. password: string = "";
  4. authUser: AuthUser;
  5.  
  6. constructor(private http: Http) { }
  7.  
  8. logIn(login: string, password: string): void{
  9. this.login = login;
  10. this.password = password;
  11. this.authotization()
  12. }
  13.  
  14. private authotization() {
  15. var body = { login: "" + this.login, password: "" + this.password };
  16. return this.http.post("account/login", body);
  17. }
  18. }
  19.  
  20. private authotization() {
  21. var body = { login: "" + this.login, password: "" + this.password };
  22. return this.http.post("account/login", body);}
  23.  
  24. private authotization() {
  25. var body = { login: this.login, password: this.password };
  26. return this.http.post("account/login", body);}
Add Comment
Please, Sign In to add comment