Dear pals,
I am using Wordpress 3.6 for my activity logging purpose . I need to authenticate user from REST , using their username/password . But Wordpress use a framework named "phpass" . I cannot identify how to compare my given password with database table password . Please advise a method to compare it.

Thanks,
Anes

Member Avatar for LastMitch

I am using Wordpress 3.6 for my activity logging purpose . I need to authenticate user from REST , using their username/password . But Wordpress use a framework named "phpass" . I cannot identify how to compare my given password with database table password . Please advise a method to compare it.

@logicslab

At least post your code. I am assuming you are using this:

http://www.restapitutorial.com/

@LastMitch
Thanks for your Quick Response . I got solution for it
as

wp_check_password( $password, $data['user_pass'],'')

if return true it's success , else fail

Thanks,
Anes

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.