How to authenticate to WP if the password is hashed?

[ad_1]

Hi,

I’m building an API for mobile app which needs to login to WP.

Can I find how WP hashed the password? so that I can do the same to the entered password on the phone and compare the encrypted values (for the record, the comparison will be done on the server and not the phone)

[ad_2]
2 Comments
  1. If you’re comparing on the server anyway, just use the wp_signon method, and verify the user if the object returned is a WP_User

    [https://developer.wordpress.org/reference/functions/wp_signon/])

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer