Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- export class AuthService {
- login: string = "";
- password: string = "";
- authUser: AuthUser;
- constructor(private http: Http) { }
- logIn(login: string, password: string): void{
- this.login = login;
- this.password = password;
- this.authotization()
- }
- private authotization() {
- var body = { login: "" + this.login, password: "" + this.password };
- return this.http.post("account/login", body);
- }
- }
- private authotization() {
- var body = { login: "" + this.login, password: "" + this.password };
- return this.http.post("account/login", body);}
- private authotization() {
- var body = { login: this.login, password: this.password };
- return this.http.post("account/login", body);}
Add Comment
Please, Sign In to add comment