Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49274

Http auth post req to api wordpress

$
0
0

@ebeliejinfren wrote:

function in api provider :

doLogin(username, password){
         this.body = {
            username: username,
            password: password
        };
        return this.http.post(this.API_LOGIN +'token',this.body);
    }

login.ts :

onLogin(){
    this.api.doLogin(this.username,this.password).subscribe((res)=>{
      console.log(res)
    });
}

And Here error image : https://ibb.co/mxV9Sy

thanks

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 49274

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>