ang

PHOTO EMBED

Tue Apr 23 2024 15:16:40 GMT+0000 (Coordinated Universal Time)

Saved by @Rahemalimomin

  loginObj: Login;

  constructor(private http: HttpClient) {
    this.loginObj = new Login();
  }
onLogin() {
    this.http.post<any>('http://192.168.1.146/maheshwarisathi.com/login/check_login', this.loginObj
  ).subscribe(      reply => {
        console.log(reply);
      },
      err => {
        console.log('error', err);
      }  
    );
  }
}

export class Login{
  username: string;
  password: string;
  user_agent:string;

  constructor() {
    this.username = '';
    this.password = '';
    this.user_agent = 'NI-AAPP';
  }
}
content_copyCOPY