I have an android app of wordpress website
in the codes in sever side I have added this code to compare between entered user,password and the user,pass that stored in the db
the problem is that the pass in user_pass table was encrypted in wordpress ...
what can I do ?
"connect.php" for connecting to db
<?php
include "connect.php";
$name=$_POST["name"];
$pass=$_POST["pass"];
$query="SELECT * FROM wp_users WHERE user_login=:name AND user_pass=:pass";
$result=$connect->prepare($query);
$result->bindParam(":name",$name);
$result->bindParam(":pass",$pass);
$result->execute();
$row=$result->fetch(PDO::FETCH_ASSOC);
if($row==false)
{
echo "you are not signing in";
}
else
{
echo $row["display_name"];
}
?>